From 0da713e278d970947ac72cea299f29a3c7ea2614 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Jan 2014 22:57:54 +0100 Subject: db/upnp: use std::move() to extract server name Reduce runtime overhead. --- src/db/UpnpDatabasePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db') 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; -- cgit v1.2.3