rename Song::__Count_Last_Slash_Position()
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user