summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-04-19 14:24:33 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-06-29 10:46:04 +0000
commitd95414171fe5f13de1881ed08d2bf7bc50e6e645 (patch)
treea333b368afa270f759623baae5b59c30d595a612 /src/plugins/platforms/cocoa
parent85cbd3517826b28b429f4239158512e14c009f9a (diff)
macOS: Remove unneeded Objective-C instance variable declarations
And their corresponding synthesizations. The compiler will take care of it for us. Change-Id: Ifa42e0732059008af6f3f65151bf203a1a19079d Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r--src/plugins/platforms/cocoa/qnswindow.h7
-rw-r--r--src/plugins/platforms/cocoa/qnswindow.mm2
2 files changed, 0 insertions, 9 deletions
diff --git a/src/plugins/platforms/cocoa/qnswindow.h b/src/plugins/platforms/cocoa/qnswindow.h
index fc702058c5..62e2d93c60 100644
--- a/src/plugins/platforms/cocoa/qnswindow.h
+++ b/src/plugins/platforms/cocoa/qnswindow.h
@@ -75,7 +75,6 @@ typedef NSWindow<QNSWindowProtocol> QCocoaNSWindow;
@interface QT_MANGLE_NAMESPACE(QNSWindowHelper) : NSObject
{
- QCocoaNSWindow *_window;
QPointer<QCocoaWindow> _platformWindow;
}
@@ -94,9 +93,6 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindowHelper);
// -------------------------------------------------------------------------
@interface QT_MANGLE_NAMESPACE(QNSWindow) : NSWindow<QNSWindowProtocol>
-{
- QNSWindowHelper *_helper;
-}
@end
QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindow);
@@ -104,9 +100,6 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindow);
// -------------------------------------------------------------------------
@interface QT_MANGLE_NAMESPACE(QNSPanel) : NSPanel<QNSWindowProtocol>
-{
- QNSWindowHelper *_helper;
-}
@end
QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSPanel);
diff --git a/src/plugins/platforms/cocoa/qnswindow.mm b/src/plugins/platforms/cocoa/qnswindow.mm
index df9e7b8067..3bb2c2eb3d 100644
--- a/src/plugins/platforms/cocoa/qnswindow.mm
+++ b/src/plugins/platforms/cocoa/qnswindow.mm
@@ -89,8 +89,6 @@ static bool isMouseEvent(NSEvent *ev)
@implementation QNSWindowHelper
-@synthesize window = _window;
-
- (QCocoaWindow *)platformWindow
{
return _platformWindow.data();