aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 23:13:24 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:13:24 +0100
commit546e7cafa4eba1dd8b4eccbec5a1c5a41b6b7ad2 (patch)
tree612169a27270f6209687bf3fa53c032d67ea7c14 /src
parentd9926a1c216a561361798bcc90ce0d7134df983e (diff)
downloadmpd-546e7cafa4eba1dd8b4eccbec5a1c5a41b6b7ad2.tar.gz
mpd-546e7cafa4eba1dd8b4eccbec5a1c5a41b6b7ad2.tar.xz
mpd-546e7cafa4eba1dd8b4eccbec5a1c5a41b6b7ad2.zip
db/proxy: merge redundant string::push_back() calls
Diffstat (limited to 'src')
-rw-r--r--src/db/UpnpDatabasePlugin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index baea8cb38..b746e28cb 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -254,12 +254,10 @@ dquote(std::string &out, const char *in)
case '\\':
case '"':
out.push_back('\\');
- out.push_back(*in);
break;
-
- default:
- out.push_back(*in);
}
+
+ out.push_back(*in);
}
out.push_back('"');