mutable song: rename a few functions

This commit is contained in:
Andrzej Rybczak
2012-09-10 23:44:35 +02:00
parent 43778b3718
commit fe0d088faa
6 changed files with 22 additions and 23 deletions

View File

@@ -123,9 +123,8 @@ std::string Song::getTrack(unsigned idx) const
std::string track = getTag(MPD_TAG_TRACK, idx);
if ((track.length() == 1 && track[0] != '0')
|| (track.length() > 3 && track[1] == '/'))
return "0"+track;
else
return track;
track = "0"+track;
return track;
}
std::string Song::getTrackNumber(unsigned idx) const