diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 16:18:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 16:20:33 +0100 |
commit | 551433e7cfc371215bb414aec11c26f8222d5f09 (patch) | |
tree | 51a803bb3ba0e8e1539751c9382ebd4840d07a47 /apple_remote | |
parent | 637485331cce33e6b7d277f993b37109bbf6b21c (diff) |
loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: Ie5a52b097ff2992de5cc82ba0d303618b44e3213
Diffstat (limited to 'apple_remote')
-rw-r--r-- | apple_remote/source/HIDRemoteControlDevice.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apple_remote/source/HIDRemoteControlDevice.m b/apple_remote/source/HIDRemoteControlDevice.m index e82034849d2a..88ebf66c664a 100644 --- a/apple_remote/source/HIDRemoteControlDevice.m +++ b/apple_remote/source/HIDRemoteControlDevice.m @@ -437,7 +437,7 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon, //Get cookie object = [element valueForKey: (NSString*)CFSTR(kIOHIDElementCookieKey) ]; 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]; //Get usage |