...or display it only if it's '%', otherwise discard it.

This commit is contained in:
Andrzej Rybczak
2009-09-09 23:53:47 +02:00
parent e5691b446e
commit b770684ab7

View File

@@ -369,8 +369,9 @@ std::string MPD::Song::ParseFormat(std::string::const_iterator &it) const
case 't':
get = &MPD::Song::GetTitle;
break;
case '%':
result += *it; // no break here
default:
result += *it;
get = 0;
break;
}