aboutsummaryrefslogtreecommitdiff
path: root/xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp')
-rw-r--r--xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp b/xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp
index 8b3e028707..80a8802e73 100644
--- a/xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp
+++ b/xbmc/platform/darwin/osx/peripherals/PeripheralBusUSB.cpp
@@ -237,10 +237,9 @@ void CPeripheralBusUSB::DeviceAttachCallback(CPeripheralBusUSB* refCon, io_itera
}
}
if (!ttlDeviceFilePath.empty())
- privateDataRef->result.m_strLocation =
- StringUtils::Format("{}", ttlDeviceFilePath.c_str());
+ privateDataRef->result.m_strLocation = ttlDeviceFilePath;
else
- privateDataRef->result.m_strLocation = StringUtils::Format("{}", locationId);
+ privateDataRef->result.m_strLocation = std::to_string(locationId);
if (bDeviceClass == kUSBCompositeClass)
privateDataRef->result.m_type = refCon->GetType(bInterfaceClass);