1
0
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:
2014-05-24 23:46:54 -07:00
parent 89a9bbb3c4
commit 1debf8180b
98 changed files with 404 additions and 413 deletions

View File

@ -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;

View File

@ -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.