diff options
author | Max Kellermann <max@duempel.org> | 2014-01-21 22:47:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-21 22:47:57 +0100 |
commit | 7777057d35ceccb39c24b9b64705697dc9a7c4ce (patch) | |
tree | b9a3d719f7d94e22e9a85c85abedeee2a738c483 /src/db | |
parent | dc5ef9ad0103b19546ca22adff094184380e9f2e (diff) | |
download | mpd-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 'src/db')
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 2 |
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; } |