diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 23:19:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 23:21:23 +0100 |
commit | 0c4a791111905df86a604261e331b29a1ee8b1ed (patch) | |
tree | cb7b2cae0beec6da6ecc03dbfdc4addf4d8ae4e0 /src/db | |
parent | 1feedd4d9c776cb52f2404732a52447fd0fe57fa (diff) | |
download | mpd-0c4a791111905df86a604261e331b29a1ee8b1ed.tar.gz mpd-0c4a791111905df86a604261e331b29a1ee8b1ed.tar.xz mpd-0c4a791111905df86a604261e331b29a1ee8b1ed.zip |
db/upnp: emplace/move in csvToStrings()
Diffstat (limited to '')
-rw-r--r-- | src/db/upnp/Util.cxx | 4 |
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; } |