[cstdstring] demise Format, replacing with StringUtils::Format
[vuplus_xbmc] / xbmc / cores / dvdplayer / DVDDemuxers / DVDDemuxHTSP.cpp
index 40551c4..2862fee 100644 (file)
@@ -27,6 +27,7 @@
 #include "DVDClock.h"
 #include "dialogs/GUIDialogKaiToast.h"
 #include "utils/log.h"
+#include "utils/StringUtils.h"
 #include <arpa/inet.h>
 
 extern "C" {
@@ -50,13 +51,12 @@ public:
   {}
   void GetStreamInfo(std::string& strInfo)
   {
-    CStdString info;
-    info.Format("%s, delay: %u, drops: %ub %up %ui"
-               , m_codec.c_str()
-               , m_parent->m_QueueStatus.delay
-               , m_parent->m_QueueStatus.bdrops
-               , m_parent->m_QueueStatus.pdrops
-               , m_parent->m_QueueStatus.idrops);
+    CStdString info = StringUtils::Format("%s, delay: %u, drops: %ub %up %ui"
+                                          , m_codec.c_str()
+                                          , m_parent->m_QueueStatus.delay
+                                          , m_parent->m_QueueStatus.bdrops
+                                          , m_parent->m_QueueStatus.pdrops
+                                          , m_parent->m_QueueStatus.idrops);
     strInfo = info;
   }
 };
@@ -74,8 +74,7 @@ public:
   {}
   void GetStreamInfo(string& strInfo)
   {
-    CStdString info;
-    info.Format("%s", m_codec.c_str());
+    CStdString info = StringUtils::Format("%s", m_codec.c_str());
     strInfo = info;
   }
 };