1 diff --git a/qcocoawindow.mm b/qcocoawindow.mm
2 index 0e5655f..6ab3a21 100644
5 @@ -272,7 +272,7 @@ static bool isMouseEvent(NSEvent *ev)
6 + (void)applicationActivationChanged:(NSNotification*)notification
8 const id sender = self;
9 - NSEnumerator *windowEnumerator = nullptr;
10 + NSEnumerator *windowEnumerator = Q_NULLPTR;
11 NSApplication *application = [NSApplication sharedApplication];
13 #if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12)
14 @@ -313,7 +313,7 @@ static bool isMouseEvent(NSEvent *ev)
17 if ([window conformsToProtocol:@protocol(QNSWindowProtocol)]) {
18 - QCocoaWindow *cocoaWindow = static_cast<id<QNSWindowProtocol>>(window).helper.platformWindow;
19 + QCocoaWindow *cocoaWindow = static_cast< id<QNSWindowProtocol> >(window).helper.platformWindow;
20 window.level = notification.name == NSApplicationWillResignActiveNotification ?
21 NSNormalWindowLevel : cocoaWindow->windowLevel(cocoaWindow->window()->flags());