mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 03:47:42 +00:00
General: Make use of emplace_back where applicable
Allows for in-place construction. Also results in less code to read in certain usages.
This commit is contained in:
@@ -475,7 +475,7 @@ CHudDecoInterfaceThermal::CHudDecoInterfaceThermal(CGuiFrame& selHud) {
|
||||
if (CGuiWidget* w = selHud.FindWidget("basewidget_lock")) {
|
||||
for (CGuiWidget* c = static_cast<CGuiWidget*>(w->GetChildObject()); c;
|
||||
c = static_cast<CGuiWidget*>(c->GetNextSibling())) {
|
||||
x84_lockonWidgets.push_back({c, c->GetLocalTransform()});
|
||||
x84_lockonWidgets.emplace_back(c, c->GetLocalTransform());
|
||||
c->SetLocalTransform(c->GetLocalTransform() * zeus::CTransform::Scale(x68_lockonScale));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user