lib/upnp/Discovery: pass std::string_view to LockRemove()

This commit is contained in:
Max Kellermann 2024-01-04 20:40:23 +01:00
parent 22382f799c
commit 3d2aebccad
2 changed files with 2 additions and 2 deletions

View File

@ -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<Mutex> protect(mutex);

View File

@ -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;