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

This commit is contained in:
Max Kellermann 2017-08-25 10:57:40 +02:00
parent 9a6d2b791f
commit 309ed77ef4
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ UPnPDevice::Parse(const std::string &url, const char *description)
// ???
URLBase = url;
} else {
auto hostslash = url.find_first_of("/", 7);
auto hostslash = url.find('/', 7);
if (hostslash == std::string::npos || hostslash == url.size()-1) {
URLBase = url;
} else {