db/upnp/Device: emplace/move the UPnPService into the vector
Reduce overhead.
This commit is contained in:
parent
2722b8a3df
commit
7d194aceb6
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user