mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
neutrino use check empty() instead of length() or size()
This commit is contained in:
@@ -136,7 +136,7 @@ std::vector<CUPnPDevice> CUPnPSocket::Discover(std::string service)
|
||||
if (!strcasecmp(location.c_str(), "location:"))
|
||||
{
|
||||
line.erase(0, 9);
|
||||
while ((line.length() > 0 )&& ((line[0] == ' ') || (line[0] == '\t')))
|
||||
while ((!line.empty()) && ((line[0] == ' ') || (line[0] == '\t')))
|
||||
line.erase(0, 1);
|
||||
if (line.substr(0,7) == "http://")
|
||||
{
|
||||
|
Reference in New Issue
Block a user