diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 21:55:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 21:55:08 +0100 |
commit | 87629dda81a8ccc9b35f0cf1987fc4620ce2f054 (patch) | |
tree | a2f237416a7d7882d6a44ef5bd288ab7a856ea11 | |
parent | 71928b473e41f710934790bf2609a2e6ec772297 (diff) | |
download | mpd-87629dda81a8ccc9b35f0cf1987fc4620ce2f054.tar.gz mpd-87629dda81a8ccc9b35f0cf1987fc4620ce2f054.tar.xz mpd-87629dda81a8ccc9b35f0cf1987fc4620ce2f054.zip |
db/upnp: use string::push_back() instead of string::append()
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx index 21b9e19f5..cf2813933 100644 --- a/src/db/UpnpDatabasePlugin.cxx +++ b/src/db/UpnpDatabasePlugin.cxx @@ -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 |