lib/upnp/Device: remove UPnPService::clear()
This commit is contained in:
parent
a2f5a63bbc
commit
569773cc75
@ -84,7 +84,7 @@ protected:
|
|||||||
value = nullptr;
|
value = nullptr;
|
||||||
} else if (!strcmp(name, "service")) {
|
} else if (!strcmp(name, "service")) {
|
||||||
m_device.services.emplace_back(std::move(m_tservice));
|
m_device.services.emplace_back(std::move(m_tservice));
|
||||||
m_tservice.clear();
|
m_tservice = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,12 +36,6 @@ struct UPnPService {
|
|||||||
// e.g. urn:schemas-upnp-org:service:ConnectionManager:1
|
// e.g. urn:schemas-upnp-org:service:ConnectionManager:1
|
||||||
std::string serviceType;
|
std::string serviceType;
|
||||||
std::string controlURL; // e.g.: /upnp/control/cm
|
std::string controlURL; // e.g.: /upnp/control/cm
|
||||||
|
|
||||||
void clear()
|
|
||||||
{
|
|
||||||
serviceType.clear();
|
|
||||||
controlURL.clear();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user