mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19: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;
|
||||
|
@ -63,7 +63,7 @@ plString GetTextAddr(uint32_t binAddr)
|
||||
{
|
||||
in_addr in;
|
||||
memcpy(&in, &binAddr, sizeof(binAddr));
|
||||
return plString::Format("%s", inet_ntoa(in));
|
||||
return plString::FromUtf8(inet_ntoa(in));
|
||||
}
|
||||
|
||||
// NOTE: On Win32, WSAStartup() must be called before GetBinAddr() will work.
|
||||
|
Reference in New Issue
Block a user