Commit 18aea922 authored by Max Kellermann's avatar Max Kellermann

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

parent 7d194ace
...@@ -219,7 +219,7 @@ protected: ...@@ -219,7 +219,7 @@ protected:
if ((!strcmp(name, "container") || !strcmp(name, "item")) && if ((!strcmp(name, "container") || !strcmp(name, "item")) &&
checkobjok()) { checkobjok()) {
tag.Commit(m_tobj.tag); 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; state = NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment