@@ -297,15 +297,15 @@ void CClientPerfStatLuaMemoryImpl::GetLuaMemoryStats(CClientPerfStatResult* pRes
297297 int WebBrowserCount = g_pClientGame->GetManager ()->GetRenderElementManager ()->GetWebBrowserCount ();
298298 int VectorGraphicCount = g_pClientGame->GetManager ()->GetRenderElementManager ()->GetVectorGraphicCount ();
299299 TextItemCount = std::max (TextItemCount - 4 , 0 ); // Remove count for radar items
300- row[c++] = !TextItemCount ? " -" : SString ( " %d " , TextItemCount). c_str ( );
301- row[c++] = !DxFontCount ? " -" : SString ( " %d " , DxFontCount). c_str ( );
302- row[c++] = !GuiFontCount ? " -" : SString ( " %d " , GuiFontCount). c_str ( );
303- row[c++] = !TextureCount ? " -" : SString ( " %d " , TextureCount). c_str ( );
304- row[c++] = !ShaderCount ? " -" : SString ( " %d " , ShaderCount). c_str ( );
305- row[c++] = !RenderTargetCount ? " -" : SString ( " %d " , RenderTargetCount). c_str ( );
306- row[c++] = !ScreenSourceCount ? " -" : SString ( " %d " , ScreenSourceCount). c_str ( );
307- row[c++] = !WebBrowserCount ? " -" : SString ( " %d " , WebBrowserCount). c_str ( );
308- row[c++] = !VectorGraphicCount ? " -" : SString ( " %d " , VectorGraphicCount). c_str ( );
300+ row[c++] = !TextItemCount ? " -" : std::to_string ( TextItemCount);
301+ row[c++] = !DxFontCount ? " -" : std::to_string ( DxFontCount);
302+ row[c++] = !GuiFontCount ? " -" : std::to_string ( GuiFontCount);
303+ row[c++] = !TextureCount ? " -" : std::to_string ( TextureCount);
304+ row[c++] = !ShaderCount ? " -" : std::to_string ( ShaderCount);
305+ row[c++] = !RenderTargetCount ? " -" : std::to_string ( RenderTargetCount);
306+ row[c++] = !ScreenSourceCount ? " -" : std::to_string ( ScreenSourceCount);
307+ row[c++] = !WebBrowserCount ? " -" : std::to_string ( WebBrowserCount);
308+ row[c++] = !VectorGraphicCount ? " -" : std::to_string ( VectorGraphicCount);
309309 }
310310
311311 // For each VM
@@ -333,9 +333,9 @@ void CClientPerfStatLuaMemoryImpl::GetLuaMemoryStats(CClientPerfStatResult* pRes
333333
334334 row[c++] = SString (" %d KB" , LuaMainMemory.Current );
335335 row[c++] = SString (" %d KB" , LuaMainMemory.Max );
336- row[c++] = !LuaMainMemory.OpenXMLFiles ? " -" : SString ( " %d " , LuaMainMemory.OpenXMLFiles ). c_str ( );
337- row[c++] = !LuaMainMemory.Refs ? " -" : SString ( " %d " , LuaMainMemory.Refs ). c_str ( );
338- row[c++] = !LuaMainMemory.TimerCount ? " -" : SString ( " %d " , LuaMainMemory.TimerCount ). c_str ( );
339- row[c++] = !LuaMainMemory.ElementCount ? " -" : SString ( " %d " , LuaMainMemory.ElementCount ). c_str ( );
336+ row[c++] = !LuaMainMemory.OpenXMLFiles ? " -" : std::to_string ( LuaMainMemory.OpenXMLFiles );
337+ row[c++] = !LuaMainMemory.Refs ? " -" : std::to_string ( LuaMainMemory.Refs );
338+ row[c++] = !LuaMainMemory.TimerCount ? " -" : std::to_string ( LuaMainMemory.TimerCount );
339+ row[c++] = !LuaMainMemory.ElementCount ? " -" : std::to_string ( LuaMainMemory.ElementCount );
340340 }
341341}
0 commit comments