diff options
Diffstat (limited to 'src/db/upnp')
-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; } |