From 9941735ae755403c6d53b7a239a143619c65743c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2014 12:03:36 +0100 Subject: db/upnp: pass std::string to titleToPathElt() --- src/db/UpnpDatabasePlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/UpnpDatabasePlugin.cxx') diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx index 32f196964..d39bcdec9 100644 --- a/src/db/UpnpDatabasePlugin.cxx +++ b/src/db/UpnpDatabasePlugin.cxx @@ -569,7 +569,7 @@ UpnpDatabase::Namei(ContentDirectoryService* server, // Look for the name in the sub-container list for (auto& dirent : dirbuf.m_containers) { - if (!vpath[i].compare(titleToPathElt(dirent.m_title.c_str()))) { + if (!vpath[i].compare(titleToPathElt(dirent.m_title))) { objid = dirent.m_id; // Next readdir target found = true; if (i == vpath.size() - 1) { @@ -587,7 +587,7 @@ UpnpDatabase::Namei(ContentDirectoryService* server, // Path elt was not a container, look at the items list for (auto& dirent : dirbuf.m_items) { - if (!vpath[i].compare(titleToPathElt(dirent.m_title.c_str()))) { + if (!vpath[i].compare(titleToPathElt(dirent.m_title))) { // If this is the last path elt, we found the target, // else it does not exist if (i == vpath.size() - 1) { -- cgit v1.2.3