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:
@@ -179,7 +179,7 @@ CUPnPDevice::CUPnPDevice(std::string url)
|
||||
if (!strcmp(node->GetType(),"URLBase"))
|
||||
{
|
||||
urlbase = std::string(node->GetData());
|
||||
if ((urlbase.length() > 0) && (urlbase[urlbase.length()-1] == '/'))
|
||||
if ((!urlbase.empty() ) && (urlbase[urlbase.length()-1] == '/'))
|
||||
urlbase.erase(urlbase.length()-1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user