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

Reduce overhead.
This commit is contained in:
Max Kellermann 2014-01-22 09:37:11 +01:00
parent 2722b8a3df
commit 7d194aceb6

View File

@ -47,7 +47,7 @@ protected:
virtual void EndElement(const XML_Char *name) {
if (!strcmp(name, "service")) {
m_device.services.push_back(m_tservice);
m_device.services.emplace_back(std::move(m_tservice));
m_tservice.clear();
}