mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 03:07:44 +00:00
string_view refactor
This commit is contained in:
@@ -110,9 +110,9 @@ CMorphBall::CMorphBall(CPlayer& player, float radius)
|
||||
InitializeWakeEffects();
|
||||
}
|
||||
|
||||
void CMorphBall::LoadAnimationTokens(const std::string& ancsName)
|
||||
void CMorphBall::LoadAnimationTokens(std::string_view ancsName)
|
||||
{
|
||||
TToken<CDependencyGroup> dgrp = g_SimplePool->GetObj((ancsName + "_DGRP").c_str());
|
||||
TToken<CDependencyGroup> dgrp = g_SimplePool->GetObj((std::string(ancsName) + "_DGRP").c_str());
|
||||
x1958_animationTokens.clear();
|
||||
x1958_animationTokens.reserve(dgrp->GetObjectTagVector().size());
|
||||
for (const SObjectTag& tag : dgrp->GetObjectTagVector())
|
||||
|
||||
Reference in New Issue
Block a user