[cstdstring] demise Format, replacing with StringUtils::Format
[vuplus_xbmc] / xbmc / utils / AsyncFileCopy.cpp
index 866834d..88a3afe 100644 (file)
@@ -24,6 +24,7 @@
 #include "guilib/GUIWindowManager.h"
 #include "log.h"
 #include "utils/TimeUtils.h"
+#include "utils/StringUtils.h"
 #include "URL.h"
 
 CAsyncFileCopy::CAsyncFileCopy() : CThread("AsyncFileCopy")
@@ -74,8 +75,7 @@ bool CAsyncFileCopy::Copy(const CStdString &from, const CStdString &to, const CS
     // and update the dialog as we go
     if (dlg && dlg->IsDialogRunning())
     {
-      CStdString speedString;
-      speedString.Format("%2.2f KB/s", m_speed / 1024);
+      CStdString speedString = StringUtils::Format("%2.2f KB/s", m_speed / 1024);
       dlg->SetHeading(heading);
       dlg->SetLine(0, url1.Get());
       dlg->SetLine(1, url2.Get());