mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Convert many of the now-deprecated plString::Format calls to plFormat
This commit is contained in:
@ -237,15 +237,16 @@ plString plGenericType::GetAsString() const
|
||||
switch (fType)
|
||||
{
|
||||
case kInt :
|
||||
return plString::Format("%d", fI);
|
||||
return plFormat("{}", fI);
|
||||
case kBool :
|
||||
case kUInt :
|
||||
return plString::Format("%u", fType==kBool?fB:fU);
|
||||
return plFormat("{}", fB ? 1 : 0);
|
||||
case kUInt:
|
||||
return plFormat("{}", fU);
|
||||
case kFloat :
|
||||
case kDouble :
|
||||
return plString::Format("%f", fType==kDouble?fD:fF);
|
||||
case kChar :
|
||||
return plString::Format("%c", fC);
|
||||
return plFormat("{}", fC);
|
||||
case kAny :
|
||||
case kString :
|
||||
return fS;
|
||||
|
Reference in New Issue
Block a user