From 7d194aceb694c5ae56b47af9ac33bf4a56bd1ea1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 09:37:11 +0100 Subject: db/upnp/Device: emplace/move the UPnPService into the vector Reduce overhead. --- src/db/upnp/Device.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/upnp/Device.cxx') diff --git a/src/db/upnp/Device.cxx b/src/db/upnp/Device.cxx index e668f839a..8f37a9fb8 100644 --- a/src/db/upnp/Device.cxx +++ b/src/db/upnp/Device.cxx @@ -47,7 +47,7 @@ protected: virtual void EndElement(const XML_Char *name) { if (!strcmp(name, "service")) { - m_device.services.push_back(m_tservice); + m_device.services.emplace_back(std::move(m_tservice)); m_tservice.clear(); } -- cgit v1.2.3