aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 09:37:11 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 09:42:46 +0100
commit7d194aceb694c5ae56b47af9ac33bf4a56bd1ea1 (patch)
tree8a9fc9235c60ef72f277d0766c69416b204a4fcc
parent2722b8a3df356bdb36fe498fb2bbc709e5ae4bc1 (diff)
downloadmpd-7d194aceb694c5ae56b47af9ac33bf4a56bd1ea1.tar.gz
mpd-7d194aceb694c5ae56b47af9ac33bf4a56bd1ea1.tar.xz
mpd-7d194aceb694c5ae56b47af9ac33bf4a56bd1ea1.zip
db/upnp/Device: emplace/move the UPnPService into the vector
Reduce overhead.
-rw-r--r--src/db/upnp/Device.cxx2
1 files changed, 1 insertions, 1 deletions
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();
}