From 569773cc754eb585d4b204e888d0795e4d11f411 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 13 Mar 2020 17:56:27 +0100 Subject: [PATCH] lib/upnp/Device: remove UPnPService::clear() --- src/lib/upnp/Device.cxx | 2 +- src/lib/upnp/Device.hxx | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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(); - } }; /**