From 87629dda81a8ccc9b35f0cf1987fc4620ce2f054 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 21:55:08 +0100 Subject: [PATCH] db/upnp: use string::push_back() instead of string::append() --- src/db/UpnpDatabasePlugin.cxx | 10 +++++----- 1 file 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