From 18aea922e9f2f60bfadac1392cbf82fd768ecc8b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 09:43:49 +0100 Subject: db/upnp/Directory: "emplace" items into the vector --- src/db/upnp/Directory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3