From 7777057d35ceccb39c24b9b64705697dc9a7c4ce Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Jan 2014 22:47:57 +0100 Subject: [PATCH] db/upnp: don't construct redundant empty vector in Visit() We know already that vpath is empty, let's use this instance. --- src/db/UpnpDatabasePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), selection, + if (!VisitServer(server, vpath, selection, visit_directory, visit_song, visit_playlist, error)) return false; }