Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed: pass by const reference

  • Loading branch information...
commit a43f858fda435d6f71f74356afea0e6dfdb32807 1 parent afbe204
spiff authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 xbmc/music/MusicDatabase.cpp
  2. +2 −2 xbmc/music/MusicDatabase.h
View
4 xbmc/music/MusicDatabase.cpp
@@ -5231,7 +5231,7 @@ void CMusicDatabase::SetPropertiesForFileItem(CFileItem& item)
}
}
-void CMusicDatabase::AnnounceRemove(std::string content, int id)
+void CMusicDatabase::AnnounceRemove(const std::string& content, int id)
{
CVariant data;
data["type"] = content;
@@ -5239,7 +5239,7 @@ void CMusicDatabase::AnnounceRemove(std::string content, int id)
ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnRemove", data);
}
-void CMusicDatabase::AnnounceUpdate(std::string content, int id)
+void CMusicDatabase::AnnounceUpdate(const std::string& content, int id)
{
CVariant data;
data["type"] = content;
View
4 xbmc/music/MusicDatabase.h
@@ -523,6 +523,6 @@ class CMusicDatabase : public CDatabase
artist_strFanart
} ArtistFields;
- void AnnounceRemove(std::string content, int id);
- void AnnounceUpdate(std::string content, int id);
+ void AnnounceRemove(const std::string& content, int id);
+ void AnnounceUpdate(const std::string& content, int id);
};
Please sign in to comment.
Something went wrong with that request. Please try again.