simplify code responsible for parsing song formats
functions MPD::Song::toString() and Display::Songs were almost identical. for now the latter uses MPD::Song::toString() implementation, which also has been simplified.
This commit is contained in:
@@ -64,9 +64,6 @@ template <typename C> void String2Buffer(const std::basic_string<C> &s, basic_bu
|
||||
{
|
||||
switch (*it)
|
||||
{
|
||||
case '$':
|
||||
buf << *it;
|
||||
break;
|
||||
case 'b':
|
||||
buf << fmtBold;
|
||||
break;
|
||||
@@ -90,6 +87,9 @@ template <typename C> void String2Buffer(const std::basic_string<C> &s, basic_bu
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
buf << *it;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user