aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 09:43:49 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 09:43:49 +0100
commit18aea922e9f2f60bfadac1392cbf82fd768ecc8b (patch)
tree80a0123673c2fda4f664549e366e257ed406d864 /src/db/upnp
parent7d194aceb694c5ae56b47af9ac33bf4a56bd1ea1 (diff)
downloadmpd-18aea922e9f2f60bfadac1392cbf82fd768ecc8b.tar.gz
mpd-18aea922e9f2f60bfadac1392cbf82fd768ecc8b.tar.xz
mpd-18aea922e9f2f60bfadac1392cbf82fd768ecc8b.zip
db/upnp/Directory: "emplace" items into the vector
Diffstat (limited to 'src/db/upnp')
-rw-r--r--src/db/upnp/Directory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/upnp/Directory.cxx b/src/db/upnp/Directory.cxx
index 9d3e0daeb..9f4418a70 100644
--- a/src/db/upnp/Directory.cxx
+++ b/src/db/upnp/Directory.cxx
@@ -219,7 +219,7 @@ protected:
if ((!strcmp(name, "container") || !strcmp(name, "item")) &&
checkobjok()) {
tag.Commit(m_tobj.tag);
- m_dir.objects.push_back(std::move(m_tobj));
+ m_dir.objects.emplace_back(std::move(m_tobj));
}
state = NONE;