mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 23:47:43 +00:00
Runtime: Collapse emplace_back() calls where applicable
Same behavior, but with less code.
This commit is contained in:
@@ -69,8 +69,7 @@ void CGrappleArm::BuildSuitDependencyList() {
|
||||
x184_grappleArm.Lock();
|
||||
for (const char* name : skDependencyNames) {
|
||||
TLockedToken<CDependencyGroup> dgrp = g_SimplePool->GetObj(name);
|
||||
x19c_suitDeps.emplace_back();
|
||||
std::vector<CToken>& depsOut = x19c_suitDeps.back();
|
||||
std::vector<CToken>& depsOut = x19c_suitDeps.emplace_back();
|
||||
FillTokenVector(dgrp->GetObjectTagVector(), depsOut);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user