db/upnp: use std::move() to extract server name
Reduce runtime overhead.
This commit is contained in:
parent
94cb1545b3
commit
0da713e278
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue