diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-06 18:03:52 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-07 10:19:48 +0000 |
commit | fbce032226722c06c6edf41f6081284ad427f355 (patch) | |
tree | cd18c59873f59da8bbcc9a1bb099a51f3dd87c1d /src/plugins/platforms | |
parent | ca14151a0cdd3bc5fa364b2816bcd3b51af4bf3d (diff) |
macOS: Add missing braces in QCocoaIntegration::updateScreens()
Change-Id: I0f5009c8ba8f2f1853a968d9853dc45e8cbc2b5f
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoaintegration.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.mm b/src/plugins/platforms/cocoa/qcocoaintegration.mm index d842bed91e..612290c9bd 100644 --- a/src/plugins/platforms/cocoa/qcocoaintegration.mm +++ b/src/plugins/platforms/cocoa/qcocoaintegration.mm @@ -255,7 +255,7 @@ void QCocoaIntegration::updateScreens() continue; } QCocoaScreen* screen = nullptr; - foreach (QCocoaScreen* existingScr, mScreens) + foreach (QCocoaScreen* existingScr, mScreens) { // NSScreen documentation says do not cache the array returned from [NSScreen screens]. // However in practice, we can identify a screen by its pointer: if resolution changes, // the NSScreen object will be the same instance, just with different values. @@ -263,6 +263,7 @@ void QCocoaIntegration::updateScreens() screen = existingScr; break; } + } if (screen) { remainingScreens.remove(screen); screen->updateProperties(); |