Commit 87629dda authored by Max Kellermann's avatar Max Kellermann

db/upnp: use string::push_back() instead of string::append()

parent 71928b47
......@@ -250,22 +250,22 @@ UpnpDatabase::GetSong(const char *uri, Error &error) const
static void
dquote(std::string &out, const char *in)
{
out.append(1, '"');
out.push_back('"');
for (; *in != 0; ++in) {
switch(*in) {
case '\\':
case '"':
out.append(1, '\\');
out.append(1, *in);
out.push_back('\\');
out.push_back(*in);
break;
default:
out.append(1, *in);
out.push_back(*in);
}
}
out.append(1, '"');
out.push_back('"');
}
// Run an UPnP search, according to MPD parameters. Return results as
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment