aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/cocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/cocoa.mm')
-rw-r--r--vncviewer/cocoa.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/vncviewer/cocoa.mm b/vncviewer/cocoa.mm
index d801a106..a355b484 100644
--- a/vncviewer/cocoa.mm
+++ b/vncviewer/cocoa.mm
@@ -301,7 +301,7 @@ static NSString *key_translate(UInt16 keyCode, UInt32 modifierFlags)
const UCKeyboardLayout *layout;
OSStatus err;
- layout = NULL;
+ layout = nullptr;
TISInputSourceRef keyboard;
CFDataRef uchr;
@@ -309,11 +309,11 @@ static NSString *key_translate(UInt16 keyCode, UInt32 modifierFlags)
keyboard = TISCopyCurrentKeyboardLayoutInputSource();
uchr = (CFDataRef)TISGetInputSourceProperty(keyboard,
kTISPropertyUnicodeKeyLayoutData);
- if (uchr == NULL)
+ if (uchr == nullptr)
return nil;
layout = (const UCKeyboardLayout*)CFDataGetBytePtr(uchr);
- if (layout == NULL)
+ if (layout == nullptr)
return nil;
UInt32 dead_state;