App: use emplace_back

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

View File

@@ -2020,7 +2020,7 @@ Document::readObjects(Base::XMLReader& reader)
std::vector<std::string> objs;
objs.reserve(d->partialLoadObjects.size());
for(auto &v : d->partialLoadObjects)
objs.push_back(v.first.c_str());
objs.emplace_back(v.first.c_str());
for(auto &name : objs)
_loadDeps(name,d->partialLoadObjects,deps);
if(Cnt > (int)d->partialLoadObjects.size())