Skip to content
This repository
Browse code

changed: move static helpers to static functions

  • Loading branch information...
commit 52c2bf1eb90be8d3bb6fc528ce27fd909cc5441f 1 parent a43f858
authored
32  xbmc/music/MusicDatabase.cpp
@@ -79,6 +79,22 @@ using ADDON::AddonPtr;
79 79
 using namespace CDDB;
80 80
 #endif
81 81
 
  82
+static void AnnounceRemove(const std::string& content, int id)
  83
+{
  84
+  CVariant data;
  85
+  data["type"] = content;
  86
+  data["id"] = id;
  87
+  ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnRemove", data);
  88
+}
  89
+
  90
+static void AnnounceUpdate(const std::string& content, int id)
  91
+{
  92
+  CVariant data;
  93
+  data["type"] = content;
  94
+  data["id"] = id;
  95
+  ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnUpdate", data);
  96
+}
  97
+
82 98
 CMusicDatabase::CMusicDatabase(void)
83 99
 {
84 100
 }
@@ -5231,22 +5247,6 @@ void CMusicDatabase::SetPropertiesForFileItem(CFileItem& item)
5231 5247
   }
5232 5248
 }
5233 5249
 
5234  
-void CMusicDatabase::AnnounceRemove(const std::string& content, int id)
5235  
-{
5236  
-  CVariant data;
5237  
-  data["type"] = content;
5238  
-  data["id"] = id;
5239  
-  ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnRemove", data);
5240  
-}
5241  
-
5242  
-void CMusicDatabase::AnnounceUpdate(const std::string& content, int id)
5243  
-{
5244  
-  CVariant data;
5245  
-  data["type"] = content;
5246  
-  data["id"] = id;
5247  
-  ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnUpdate", data);
5248  
-}
5249  
-
5250 5250
 void CMusicDatabase::SetArtForItem(int mediaId, const string &mediaType, const map<string, string> &art)
5251 5251
 {
5252 5252
   for (map<string, string>::const_iterator i = art.begin(); i != art.end(); ++i)
3  xbmc/music/MusicDatabase.h
@@ -522,7 +522,4 @@ class CMusicDatabase : public CDatabase
522 522
     artist_strImage,
523 523
     artist_strFanart
524 524
   } ArtistFields;
525  
-
526  
-  void AnnounceRemove(const std::string& content, int id);
527  
-  void AnnounceUpdate(const std::string& content, int id);
528 525
 };

0 notes on commit 52c2bf1

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