Commit 7d194ace authored by Max Kellermann's avatar Max Kellermann

db/upnp/Device: emplace/move the UPnPService into the vector

Reduce overhead.
parent 2722b8a3
...@@ -47,7 +47,7 @@ protected: ...@@ -47,7 +47,7 @@ protected:
virtual void EndElement(const XML_Char *name) { virtual void EndElement(const XML_Char *name) {
if (!strcmp(name, "service")) { if (!strcmp(name, "service")) {
m_device.services.push_back(m_tservice); m_device.services.emplace_back(std::move(m_tservice));
m_tservice.clear(); m_tservice.clear();
} }
......
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