db/upnp/Directory: "emplace" items into the vector

This commit is contained in:
Max Kellermann 2014-01-22 09:43:49 +01:00
parent 7d194aceb6
commit 18aea922e9

View File

@ -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;