rename Song::__Count_Last_Slash_Position()

This commit is contained in:
Andrzej Rybczak
2009-03-05 17:45:43 +01:00
parent ea973b6b4a
commit eef59c9099
2 changed files with 4 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ Song::Song(mpd_Song *s, bool copy_ptr) : itsSong(s ? s : mpd_newSong()),
if (itsSong->file) if (itsSong->file)
{ {
__Count_Last_Slash_Position(); CountLastSlashPosition();
if (strncmp(itsSong->file, "http://", 7) == 0) if (strncmp(itsSong->file, "http://", 7) == 0)
isStream = 1; isStream = 1;
} }
@@ -88,7 +88,7 @@ void Song::Localize()
if (isLocalised) if (isLocalised)
return; return;
str_pool_utf_to_locale(itsSong->file); str_pool_utf_to_locale(itsSong->file);
__Count_Last_Slash_Position(); CountLastSlashPosition();
str_pool_utf_to_locale(itsSong->artist); str_pool_utf_to_locale(itsSong->artist);
str_pool_utf_to_locale(itsSong->title); str_pool_utf_to_locale(itsSong->title);
str_pool_utf_to_locale(itsSong->album); str_pool_utf_to_locale(itsSong->album);
@@ -542,7 +542,7 @@ string Song::ShowTime(int length)
return ss.str(); return ss.str();
} }
void Song::__Count_Last_Slash_Position() void Song::CountLastSlashPosition()
{ {
char *tmp = strrchr(itsSong->file, '/'); char *tmp = strrchr(itsSong->file, '/');
if (tmp) if (tmp)

View File

@@ -95,7 +95,7 @@ namespace MPD
static std::string ShowTime(int); static std::string ShowTime(int);
private: private:
void __Count_Last_Slash_Position(); void CountLastSlashPosition();
mpd_Song *itsSong; mpd_Song *itsSong;
std::string itsNewName; std::string itsNewName;