From 46debfb8b54f19411376d2b486f51b48aa9b8cf9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2014 14:11:07 +0100 Subject: db/upnp/Object: disallow copying, always move Reduce bloat. --- src/db/upnp/Directory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/upnp/Directory.cxx') diff --git a/src/db/upnp/Directory.cxx b/src/db/upnp/Directory.cxx index 8a6708a67..35d556c28 100644 --- a/src/db/upnp/Directory.cxx +++ b/src/db/upnp/Directory.cxx @@ -151,7 +151,7 @@ protected: { if ((!strcmp(name, "container") || !strcmp(name, "item")) && checkobjok()) - m_dir.objects.push_back(m_tobj); + m_dir.objects.push_back(std::move(m_tobj)); m_path.pop_back(); } -- cgit v1.2.3