use emplace_back instead of push_back where justified
This commit is contained in:
@@ -821,7 +821,7 @@ void AttachEngine::readLinks(const App::PropertyLinkSubList &references,
|
||||
shapes[i] = &(storage[storage.size()-1]);
|
||||
} else {
|
||||
Base::Console().Warning("Attacher: linked object %s is unexpected, assuming it has no shape.\n",geof->getNameInDocument());
|
||||
storage.push_back(TopoDS_Shape());
|
||||
storage.emplace_back();
|
||||
shapes[i] = &(storage[storage.size()-1]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user