Fix potential wrong-over-optimization in math utilities
[carla.git] / data / patches / qt56-cpp98-compat.patch
blob96d6fd1ea7a4244e5945830a97657c0542fb49e5
1 diff --git a/qcocoawindow.mm b/qcocoawindow.mm
2 index 0e5655f..6ab3a21 100644
3 --- a/qcocoawindow.mm
4 +++ b/qcocoawindow.mm
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)
15 continue;
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());