mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-08 19:37:02 -05:00
StringUtil: Use std::string_view more
This commit is contained in:
@@ -141,7 +141,7 @@ static std::string GetDeviceRefName(IOHIDDeviceRef inIOHIDDeviceRef)
|
||||
{
|
||||
const NSString* name = reinterpret_cast<const NSString*>(
|
||||
IOHIDDeviceGetProperty(inIOHIDDeviceRef, CFSTR(kIOHIDProductKey)));
|
||||
return (name != nullptr) ? StripSpaces([name UTF8String]) : "Unknown device";
|
||||
return (name != nullptr) ? std::string(StripSpaces([name UTF8String])) : "Unknown device";
|
||||
}
|
||||
|
||||
static void DeviceRemovalCallback(void* inContext, IOReturn inResult, void* inSender,
|
||||
|
||||
Reference in New Issue
Block a user