[cstdstring] demise Format, replacing with StringUtils::Format
[vuplus_xbmc] / xbmc / peripherals / bus / linux / PeripheralBusUSBLibUSB.cpp
index ec4e9b4..2658218 100644 (file)
@@ -22,6 +22,7 @@
 #include "peripherals/Peripherals.h"
 #include <usb.h>
 #include "utils/log.h"
+#include "utils/StringUtils.h"
 
 using namespace PERIPHERALS;
 
@@ -51,9 +52,9 @@ bool CPeripheralBusUSB::PerformDeviceScan(PeripheralScanResults &results)
                                  GetType(dev->config[0].interface[0].altsetting[0].bInterfaceClass) :
                                  GetType(dev->descriptor.bDeviceClass);
 #ifdef TARGET_FREEBSD
-      result.m_strLocation.Format("%s", dev->filename);
+      result.m_strLocation = StringUtils::Format("%s", dev->filename);
 #else
-      result.m_strLocation.Format("/bus%s/dev%s", bus->dirname, dev->filename);
+      result.m_strLocation = StringUtils::Format("/bus%s/dev%s", bus->dirname, dev->filename);
 #endif
       result.m_iSequence   = GetNumberOfPeripheralsWithId(result.m_iVendorId, result.m_iProductId);
       if (!results.ContainsResult(result))