db/upnp: use std::move() to extract server name

Reduce runtime overhead.
This commit is contained in:
Max Kellermann 2014-01-21 22:57:54 +01:00
parent 94cb1545b3
commit 0da713e278
1 changed files with 1 additions and 1 deletions

View File

@ -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;