diff options
author | Max Kellermann <max@duempel.org> | 2014-01-14 14:11:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-14 14:11:07 +0100 |
commit | 46debfb8b54f19411376d2b486f51b48aa9b8cf9 (patch) | |
tree | 2f4934eb4a82059cda4bcbe483ca6ad6b388542f /src/db/upnp/Directory.hxx | |
parent | 9a4b572d3461ab8124b4f5e8e2a199907f7efd2f (diff) | |
download | mpd-46debfb8b54f19411376d2b486f51b48aa9b8cf9.tar.gz mpd-46debfb8b54f19411376d2b486f51b48aa9b8cf9.tar.xz mpd-46debfb8b54f19411376d2b486f51b48aa9b8cf9.zip |
db/upnp/Object: disallow copying, always move
Reduce bloat.
Diffstat (limited to 'src/db/upnp/Directory.hxx')
-rw-r--r-- | src/db/upnp/Directory.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/upnp/Directory.hxx b/src/db/upnp/Directory.hxx index 3324b2232..80b52ff2b 100644 --- a/src/db/upnp/Directory.hxx +++ b/src/db/upnp/Directory.hxx @@ -37,8 +37,8 @@ public: std::vector<UPnPDirObject> objects; gcc_pure - const UPnPDirObject *FindObject(const char *name) const { - for (const auto &o : objects) + UPnPDirObject *FindObject(const char *name) { + for (auto &o : objects) if (o.name == name) return &o; |