use emplace_back instead of push_back where justified
This commit is contained in:
@@ -5287,7 +5287,7 @@ int SketchObject::addExternal(App::DocumentObject *Obj, const char* SubName)
|
||||
|
||||
// add the new ones
|
||||
Objects.push_back(Obj);
|
||||
SubElements.push_back(std::string(SubName));
|
||||
SubElements.emplace_back(SubName);
|
||||
|
||||
// set the Link list.
|
||||
ExternalGeometry.setValues(Objects,SubElements);
|
||||
|
||||
Reference in New Issue
Block a user