Gui: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:06:02 +10:00
committed by wwmayer
parent ac81a8380f
commit 066656f62a
19 changed files with 52 additions and 52 deletions

View File

@@ -339,7 +339,7 @@ void ViewProviderDocumentObject::attach(App::DocumentObject *pcObj)
aDisplayModesArray = this->getDisplayModes();
if (aDisplayModesArray.empty())
aDisplayModesArray.push_back("");
aDisplayModesArray.emplace_back("");
// We must collect the const char* of the strings and give it to PropertyEnumeration,
// but we are still responsible for them, i.e. the property class must not delete the literals.