diff --git a/src/lib/upnp/Discovery.cxx b/src/lib/upnp/Discovery.cxx index eddd14487..f81ccd718 100644 --- a/src/lib/upnp/Discovery.cxx +++ b/src/lib/upnp/Discovery.cxx @@ -210,7 +210,7 @@ UPnPDeviceDirectory::LockAdd(ContentDirectoryDescriptor &&d) noexcept } inline void -UPnPDeviceDirectory::LockRemove(const std::string &id) noexcept +UPnPDeviceDirectory::LockRemove(const std::string_view id) noexcept { const std::scoped_lock protect(mutex); diff --git a/src/lib/upnp/Discovery.hxx b/src/lib/upnp/Discovery.hxx index 4393304d6..4d6ecc034 100644 --- a/src/lib/upnp/Discovery.hxx +++ b/src/lib/upnp/Discovery.hxx @@ -98,7 +98,7 @@ private: void ExpireDevices() noexcept; void LockAdd(ContentDirectoryDescriptor &&d) noexcept; - void LockRemove(const std::string &id) noexcept; + void LockRemove(std::string_view id) noexcept; int OnAlive(const UpnpDiscovery *disco) noexcept; int OnByeBye(const UpnpDiscovery *disco) noexcept;