Kaydet (Commit) 551433e7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr (automatic rewrite; Mac-specific code)

Change-Id: Ie5a52b097ff2992de5cc82ba0d303618b44e3213
üst 63748533
...@@ -437,7 +437,7 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon, ...@@ -437,7 +437,7 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon,
//Get cookie //Get cookie
object = [element valueForKey: (NSString*)CFSTR(kIOHIDElementCookieKey) ]; object = [element valueForKey: (NSString*)CFSTR(kIOHIDElementCookieKey) ];
if (object == nil || ![object isKindOfClass:[NSNumber class]]) continue; if (object == nil || ![object isKindOfClass:[NSNumber class]]) continue;
if (object == 0 || CFGetTypeID(object) != CFNumberGetTypeID()) continue; if (object == NULL || CFGetTypeID(object) != CFNumberGetTypeID()) continue;
cookie = (IOHIDElementCookie) [object longValue]; cookie = (IOHIDElementCookie) [object longValue];
//Get usage //Get usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment