diff options
author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2010-01-22 13:25:18 (GMT) |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2010-01-22 13:26:35 (GMT) |
commit | c50788df123d848b8212376884376cc216c31015 (patch) | |
tree | 5c5317fbff9827de29a717a8af63683ef0a24a1e /src/gui/kernel | |
parent | 5236f93d78d0a09f80819d364867793dd73112e9 (diff) | |
download | Qt-c50788df123d848b8212376884376cc216c31015.zip Qt-c50788df123d848b8212376884376cc216c31015.tar.gz Qt-c50788df123d848b8212376884376cc216c31015.tar.bz2 |
Fix NSCFNumber autorelease warning on Mac.
Task: QTBUG-7385
Revby: Lorn Potter
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qapplication_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_mac.mm b/src/gui/kernel/qapplication_mac.mm index 6aebef5..847c58d 100644 --- a/src/gui/kernel/qapplication_mac.mm +++ b/src/gui/kernel/qapplication_mac.mm @@ -227,6 +227,10 @@ void onApplicationChangedActivation( bool activated ); static void qt_mac_read_fontsmoothing_settings() { +#ifdef QT_MAC_USE_COCOA + QMacCocoaAutoReleasePool pool2; +#endif + NSInteger appleFontSmoothing = [[NSUserDefaults standardUserDefaults] integerForKey:@"AppleFontSmoothing"]; qt_applefontsmoothing_enabled = (appleFontSmoothing > 0); } |