db/upnp: don't construct redundant empty vector<string> in Visit()
We know already that vpath is empty, let's use this instance.
This commit is contained in:
parent
dc5ef9ad01
commit
7777057d35
|
@ -704,7 +704,7 @@ UpnpDatabase::Visit(const DatabaseSelection &selection,
|
|||
} else {
|
||||
// Recursive is set: visit each server
|
||||
for (auto& server : servers) {
|
||||
if (!VisitServer(server, std::vector<std::string>(), selection,
|
||||
if (!VisitServer(server, vpath, selection,
|
||||
visit_directory, visit_song, visit_playlist, error))
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue