aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 23:19:35 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:21:23 +0100
commit0c4a791111905df86a604261e331b29a1ee8b1ed (patch)
treecb7b2cae0beec6da6ecc03dbfdc4addf4d8ae4e0 /src/db/upnp
parent1feedd4d9c776cb52f2404732a52447fd0fe57fa (diff)
downloadmpd-0c4a791111905df86a604261e331b29a1ee8b1ed.tar.gz
mpd-0c4a791111905df86a604261e331b29a1ee8b1ed.tar.xz
mpd-0c4a791111905df86a604261e331b29a1ee8b1ed.zip
db/upnp: emplace/move in csvToStrings()
Diffstat (limited to 'src/db/upnp')
-rw-r--r--src/db/upnp/Util.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/upnp/Util.cxx b/src/db/upnp/Util.cxx
index b316b362b..cf34a47d3 100644
--- a/src/db/upnp/Util.cxx
+++ b/src/db/upnp/Util.cxx
@@ -145,7 +145,7 @@ csvToStrings(const char *s, T &tokens)
while (true) {
char ch = *s++;
if (ch == 0) {
- tokens.push_back(current);
+ tokens.emplace_back(std::move(current));
return true;
}
@@ -154,7 +154,7 @@ csvToStrings(const char *s, T &tokens)
if (ch == 0)
return false;
} else if (ch == ',') {
- tokens.push_back(current);
+ tokens.emplace_back(std::move(current));
current.clear();
continue;
}