StripSpaces: only strip spaces
StripWhitespace maintains old behavior
This commit is contained in:
1 parent
e4ff49769c
commit
f92541fbd9
20 files changed
+44
-32
No files matched your search
@@ -139,7 +139,7 @@ static std::string GetDeviceRefName(IOHIDDeviceRef inIOHIDDeviceRef)
|
||||
{
|
||||
const NSString* name = reinterpret_cast<const NSString*>(
|
||||
IOHIDDeviceGetProperty(inIOHIDDeviceRef, CFSTR(kIOHIDProductKey)));
|
||||
return (name != nullptr) ? std::string(StripSpaces([name UTF8String])) : "Unknown device";
|
||||
return (name != nullptr) ? std::string(StripWhitespace([name UTF8String])) : "Unknown device";
|
||||
}
|
||||
|
||||
static void DeviceRemovalCallback(void* inContext, IOReturn inResult, void* inSender,
|
||||
|
||||
Reference in new issue
Block a user