Commit 309ed77e authored by Max Kellermann's avatar Max Kellermann

lib/upnp/Device: use std::string::find() instead of ...find_first_of()

parent 9a6d2b79
...@@ -115,7 +115,7 @@ UPnPDevice::Parse(const std::string &url, const char *description) ...@@ -115,7 +115,7 @@ UPnPDevice::Parse(const std::string &url, const char *description)
// ??? // ???
URLBase = url; URLBase = url;
} else { } else {
auto hostslash = url.find_first_of("/", 7); auto hostslash = url.find('/', 7);
if (hostslash == std::string::npos || hostslash == url.size()-1) { if (hostslash == std::string::npos || hostslash == url.size()-1) {
URLBase = url; URLBase = url;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment