diff options
author | Max Kellermann <max@duempel.org> | 2014-01-14 12:03:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-14 12:03:36 +0100 |
commit | 9941735ae755403c6d53b7a239a143619c65743c (patch) | |
tree | d99c8f76a3a6a3c510a12e14eb85d6cc5b645662 /src/db | |
parent | 29e5dc4413bde9ed1886bd3287943f4d1102d0a7 (diff) | |
download | mpd-9941735ae755403c6d53b7a239a143619c65743c.tar.gz mpd-9941735ae755403c6d53b7a239a143619c65743c.tar.xz mpd-9941735ae755403c6d53b7a239a143619c65743c.zip |
db/upnp: pass std::string to titleToPathElt()
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |