diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-09-09 23:53:47 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-09-09 23:53:47 +0200 |
commit | b770684ab7531675fb588dca2f191d2cc6812f76 (patch) | |
tree | fb217afc8db3ef0738a66de31ddea0870398619f /src/song.cpp | |
parent | e5691b446efc3ff61e38f1e0d264a1f7a032d5ca (diff) |
...or display it only if it's '%', otherwise discard it.
Diffstat (limited to 'src/song.cpp')
-rw-r--r-- | src/song.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/song.cpp b/src/song.cpp index 56183775..1ffcf176 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -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; } |