diff --git a/src/lib/upnp/Device.cxx b/src/lib/upnp/Device.cxx index d382ffdf8..f64f6a85e 100644 --- a/src/lib/upnp/Device.cxx +++ b/src/lib/upnp/Device.cxx @@ -84,7 +84,7 @@ protected: value = nullptr; } else if (!strcmp(name, "service")) { m_device.services.emplace_back(std::move(m_tservice)); - m_tservice.clear(); + m_tservice = {}; } } diff --git a/src/lib/upnp/Device.hxx b/src/lib/upnp/Device.hxx index 8321839bb..3f723bf22 100644 --- a/src/lib/upnp/Device.hxx +++ b/src/lib/upnp/Device.hxx @@ -36,12 +36,6 @@ struct UPnPService { // e.g. urn:schemas-upnp-org:service:ConnectionManager:1 std::string serviceType; std::string controlURL; // e.g.: /upnp/control/cm - - void clear() - { - serviceType.clear(); - controlURL.clear(); - } }; /**