Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.0KB

  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
  7. {
  8. const id sender = self;
  9. - NSEnumerator *windowEnumerator = nullptr;
  10. + NSEnumerator *windowEnumerator = Q_NULLPTR;
  11. NSApplication *application = [NSApplication sharedApplication];
  12. #if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12)
  13. @@ -313,7 +313,7 @@ static bool isMouseEvent(NSEvent *ev)
  14. continue;
  15. if ([window conformsToProtocol:@protocol(QNSWindowProtocol)]) {
  16. - QCocoaWindow *cocoaWindow = static_cast<id<QNSWindowProtocol>>(window).helper.platformWindow;
  17. + QCocoaWindow *cocoaWindow = static_cast< id<QNSWindowProtocol> >(window).helper.platformWindow;
  18. window.level = notification.name == NSApplicationWillResignActiveNotification ?
  19. NSNormalWindowLevel : cocoaWindow->windowLevel(cocoaWindow->window()->flags());
  20. }