aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/UpnpDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-21 22:57:54 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 22:57:54 +0100
commit0da713e278d970947ac72cea299f29a3c7ea2614 (patch)
treea710a96442336b8d20db50ce14070f7086f53955 /src/db/UpnpDatabasePlugin.cxx
parent94cb1545b38e5a39340a8e4da60656b7faa7920e (diff)
downloadmpd-0da713e278d970947ac72cea299f29a3c7ea2614.tar.gz
mpd-0da713e278d970947ac72cea299f29a3c7ea2614.tar.xz
mpd-0da713e278d970947ac72cea299f29a3c7ea2614.zip
db/upnp: use std::move() to extract server name
Reduce runtime overhead.
Diffstat (limited to 'src/db/UpnpDatabasePlugin.cxx')
-rw-r--r--src/db/UpnpDatabasePlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index c62700c59..263494439 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -713,7 +713,7 @@ UpnpDatabase::Visit(const DatabaseSelection &selection,
}
// We do have a path: the first element selects the server
- std::string servername(vpath.front());
+ std::string servername(std::move(vpath.front()));
vpath.erase(vpath.begin());
ContentDirectoryService server;