Skip to content
This repository
Browse code

changed: pass by const reference

  • Loading branch information...
commit a43f858fda435d6f71f74356afea0e6dfdb32807 1 parent afbe204
authored May 02, 2013
4  xbmc/music/MusicDatabase.cpp
@@ -5231,7 +5231,7 @@ void CMusicDatabase::SetPropertiesForFileItem(CFileItem& item)
5231 5231
   }
5232 5232
 }
5233 5233
 
5234  
-void CMusicDatabase::AnnounceRemove(std::string content, int id)
  5234
+void CMusicDatabase::AnnounceRemove(const std::string& content, int id)
5235 5235
 {
5236 5236
   CVariant data;
5237 5237
   data["type"] = content;
@@ -5239,7 +5239,7 @@ void CMusicDatabase::AnnounceRemove(std::string content, int id)
5239 5239
   ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnRemove", data);
5240 5240
 }
5241 5241
 
5242  
-void CMusicDatabase::AnnounceUpdate(std::string content, int id)
  5242
+void CMusicDatabase::AnnounceUpdate(const std::string& content, int id)
5243 5243
 {
5244 5244
   CVariant data;
5245 5245
   data["type"] = content;
4  xbmc/music/MusicDatabase.h
@@ -523,6 +523,6 @@ class CMusicDatabase : public CDatabase
523 523
     artist_strFanart
524 524
   } ArtistFields;
525 525
 
526  
-  void AnnounceRemove(std::string content, int id);
527  
-  void AnnounceUpdate(std::string content, int id);
  526
+  void AnnounceRemove(const std::string& content, int id);
  527
+  void AnnounceUpdate(const std::string& content, int id);
528 528
 };

0 notes on commit a43f858

Please sign in to comment.
Something went wrong with that request. Please try again.