mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
use empty to check string
This commit is contained in:
@@ -157,7 +157,7 @@ CUPnPDevice::CUPnPDevice(std::string url)
|
||||
head = result.substr(0,pos);
|
||||
body = result.substr(pos+4);
|
||||
|
||||
if (body == "")
|
||||
if (body.empty())
|
||||
throw std::runtime_error(std::string("desc body empty"));
|
||||
|
||||
if (!check_response(head, charset, rcode))
|
||||
|
Reference in New Issue
Block a user