diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 13:53:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-18 14:26:24 +0100 |
commit | 04b7648e004a5f21c615aa36c0801ae0986baf1e (patch) | |
tree | 9e4196edc32ea75efc5c4c1a72e2dd0e63ec9478 /src/db/upnp/Discovery.cxx | |
parent | be0759d4651126c0695c7ff83e1f2a9feca7ec4e (diff) | |
download | mpd-04b7648e004a5f21c615aa36c0801ae0986baf1e.tar.gz mpd-04b7648e004a5f21c615aa36c0801ae0986baf1e.tar.xz mpd-04b7648e004a5f21c615aa36c0801ae0986baf1e.zip |
db/upnp/Device: use ContentDirectoryDescriptor's move operator
Reduce bloat.
Diffstat (limited to '')
-rw-r--r-- | src/db/upnp/Discovery.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx index 98bc8ddb2..b5c6b5f92 100644 --- a/src/db/upnp/Discovery.cxx +++ b/src/db/upnp/Discovery.cxx @@ -82,13 +82,7 @@ UPnPDeviceDirectory::discoExplorer() } const ScopeLock protect(mutex); -#if defined(__clang__) || GCC_CHECK_VERSION(4,8) - auto e = directories.emplace(tsk->deviceId, d); -#else - auto e = directories.insert(std::make_pair(tsk->deviceId, d)); -#endif - if (!e.second) - e.first->second = d; + directories[std::move(tsk->deviceId)] = std::move(d); delete tsk; } |