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:
@ -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 /////////////////////////////////////////////////////////////////
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user