Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed: move static helpers to static functions

  • Loading branch information...
commit 52c2bf1eb90be8d3bb6fc528ce27fd909cc5441f 1 parent a43f858
spiff authored
Showing with 16 additions and 19 deletions.
  1. +16 −16 xbmc/music/MusicDatabase.cpp
  2. +0 −3  xbmc/music/MusicDatabase.h
View
32 xbmc/music/MusicDatabase.cpp
@@ -79,6 +79,22 @@ using ADDON::AddonPtr;
using namespace CDDB;
#endif
+static void AnnounceRemove(const std::string& content, int id)
+{
+ CVariant data;
+ data["type"] = content;
+ data["id"] = id;
+ ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnRemove", data);
+}
+
+static void AnnounceUpdate(const std::string& content, int id)
+{
+ CVariant data;
+ data["type"] = content;
+ data["id"] = id;
+ ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnUpdate", data);
+}
+
CMusicDatabase::CMusicDatabase(void)
{
}
@@ -5231,22 +5247,6 @@ void CMusicDatabase::SetPropertiesForFileItem(CFileItem& item)
}
}
-void CMusicDatabase::AnnounceRemove(const std::string& content, int id)
-{
- CVariant data;
- data["type"] = content;
- data["id"] = id;
- ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnRemove", data);
-}
-
-void CMusicDatabase::AnnounceUpdate(const std::string& content, int id)
-{
- CVariant data;
- data["type"] = content;
- data["id"] = id;
- ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnUpdate", data);
-}
-
void CMusicDatabase::SetArtForItem(int mediaId, const string &mediaType, const map<string, string> &art)
{
for (map<string, string>::const_iterator i = art.begin(); i != art.end(); ++i)
View
3  xbmc/music/MusicDatabase.h
@@ -522,7 +522,4 @@ class CMusicDatabase : public CDatabase
artist_strImage,
artist_strFanart
} ArtistFields;
-
- 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.