App: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:04:34 +10:00
committed by wwmayer
parent fce9a2fcfb
commit ac81a8380f
8 changed files with 23 additions and 23 deletions

View File

@@ -4328,7 +4328,7 @@ void PropertyXLinkSubList::getLinks(std::vector<App::DocumentObject *> &objs,
if(obj && obj->getNameInDocument()) {
auto subnames = l.getSubValues(newStyle);
if (subnames.empty())
subnames.push_back("");
subnames.emplace_back("");
for(auto &sub : subnames) {
objs.push_back(obj);
subs->push_back(std::move(sub));