lib/upnp/Discovery: pass std::string_view to LockRemove()
This commit is contained in:
parent
22382f799c
commit
3d2aebccad
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue