aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-21 22:47:57 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 22:47:57 +0100
commit7777057d35ceccb39c24b9b64705697dc9a7c4ce (patch)
treeb9a3d719f7d94e22e9a85c85abedeee2a738c483 /src
parentdc5ef9ad0103b19546ca22adff094184380e9f2e (diff)
downloadmpd-7777057d35ceccb39c24b9b64705697dc9a7c4ce.tar.gz
mpd-7777057d35ceccb39c24b9b64705697dc9a7c4ce.tar.xz
mpd-7777057d35ceccb39c24b9b64705697dc9a7c4ce.zip
db/upnp: don't construct redundant empty vector<string> in Visit()
We know already that vpath is empty, let's use this instance.
Diffstat (limited to '')
-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 5ce09e31e..cbb913bef 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -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;
}