Gui: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:06:02 +10:00
committed by wwmayer
parent e7357c1a99
commit 6ac4d8392e
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);
}
}