Replace all ocurrences of NSApp with [NSApplication sharedApplication].
authorJake Petroules <jake.petroules@petroules.com>
Mon, 16 Jun 2014 11:58:29 +0000 (07:58 -0400)
committerJake Petroules <jake.petroules@petroules.com>
Mon, 1 Sep 2014 15:49:07 +0000 (17:49 +0200)
commit997d626173d9aba5b01b35e4d95ad162771ba789
tree774c1b814c9f933d32a58a2c42183a438eca7d15
parent93c137ea29f011a267e22fa644a40aba6e3e2d22
Replace all ocurrences of NSApp with [NSApplication sharedApplication].

The former returns an id and the latter returns an NSApplication*. This
gives us the benefits of static typing and resolves a build error on
OS X 10.10.

Task-number: QTBUG-39644
Change-Id: I62939b168f391beb846f8a1c5ae789e45bceb858
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
17 files changed:
src/gui/dialogs/qcolordialog_mac.mm
src/gui/dialogs/qfiledialog_mac.mm
src/gui/dialogs/qfontdialog_mac.mm
src/gui/kernel/qapplication_mac.mm
src/gui/kernel/qcocoaapplication_mac.mm
src/gui/kernel/qcocoaapplicationdelegate_mac.mm
src/gui/kernel/qcocoaapplicationdelegate_mac_p.h
src/gui/kernel/qcocoamenuloader_mac.mm
src/gui/kernel/qcocoasharedwindowmethods_mac_p.h
src/gui/kernel/qeventdispatcher_mac.mm
src/gui/kernel/qt_cocoa_helpers_mac.mm
src/gui/kernel/qwidget_mac.mm
src/gui/styles/qmacstyle_mac.mm
src/gui/util/qsystemtrayicon_mac.mm
src/gui/widgets/qcocoamenu_mac.mm
src/gui/widgets/qmenu_mac.mm
tests/auto/qfontdialog/tst_qfontdialog_mac_helpers.mm