1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Convert many of the now-deprecated plString::Format calls to plFormat

This commit is contained in:
2014-05-24 23:46:54 -07:00
parent 89a9bbb3c4
commit 1debf8180b
98 changed files with 404 additions and 413 deletions

View File

@ -126,7 +126,7 @@ plString pfGUICtrlGenerator::IGetNextKeyName( const char *prefix )
{
static uint32_t keyCount = 0;
return plString::Format( "%s%d", prefix, keyCount++ );
return plFormat("{}{}", prefix, keyCount++);
}
//// IAddKey /////////////////////////////////////////////////////////////////

View File

@ -184,7 +184,7 @@ pfGUIListPicture::pfGUIListPicture( plKey mipKey, bool respectAlpha ) : pfGUILis
{
// Gotta make and grab an uncompressed one
plMipmap *uncompBuffer = hsCodecManager::Instance().CreateUncompressedMipmap( mip, hsCodecManager::k32BitDepth );
plString str = plString::Format( "%s_uncomp", mip->GetKeyName().c_str() );
plString str = plFormat("{}_uncomp", mip->GetKeyName());
fMipmapKey = hsgResMgr::ResMgr()->NewKey( str, uncompBuffer, fMipmapKey->GetUoid().GetLocation() );
fMipmapKey->RefObject();
}

View File

@ -97,7 +97,7 @@ class pfPopUpKeyGenerator
plKey CreateKey( hsKeyedObject *ko )
{
plString name = plString::Format( "%s-%d", fPrefix, fKeyCount++ );
plString name = plFormat("{}-{}", fPrefix, fKeyCount++);
return hsgResMgr::ResMgr()->NewKey( name, ko, fLoc );
}