aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Object.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-14 14:11:07 +0100
committerMax Kellermann <max@duempel.org>2014-01-14 14:11:07 +0100
commit46debfb8b54f19411376d2b486f51b48aa9b8cf9 (patch)
tree2f4934eb4a82059cda4bcbe483ca6ad6b388542f /src/db/upnp/Object.hxx
parent9a4b572d3461ab8124b4f5e8e2a199907f7efd2f (diff)
downloadmpd-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/Object.hxx')
-rw-r--r--src/db/upnp/Object.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/upnp/Object.hxx b/src/db/upnp/Object.hxx
index 1346c15d4..1d32d0401 100644
--- a/src/db/upnp/Object.hxx
+++ b/src/db/upnp/Object.hxx
@@ -70,6 +70,10 @@ public:
*/
int duration;
+ UPnPDirObject() = default;
+ UPnPDirObject(UPnPDirObject &&) = default;
+ UPnPDirObject &operator=(UPnPDirObject &&) = default;
+
/** Get named property
* @param property name (e.g. upnp:artist, upnp:album,
* upnp:originalTrackNumber, upnp:genre). Use m_title instead