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

@@ -50,7 +50,7 @@ SelectionObject::SelectionObject(const Gui::SelectionChanges& msg)
DocName = msg.pDocName ? msg.pDocName : "";
TypeName = msg.pTypeName ? msg.pTypeName : "";
if (msg.pSubName) {
SubNames.push_back(msg.pSubName);
SubNames.emplace_back(msg.pSubName);
SelPoses.emplace_back(msg.x, msg.y, msg.z);
}
}