summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2013-08-15 12:45:13 (GMT)
committerTobias Markmann <tm@ayena.de>2013-08-15 12:45:13 (GMT)
commit88153286ea2f11fea24b950e7dbb0075ceb49a54 (patch)
treef0eccff3e37fdaf0f51583ebcedad3ad979ba645 /Slimber
parent096aab8e39493803e14f50dc6d1f4440a9e9c55d (diff)
downloadswift-88153286ea2f11fea24b950e7dbb0075ceb49a54.zip
swift-88153286ea2f11fea24b950e7dbb0075ceb49a54.tar.bz2
Getting rid of "-Wobjc-interface-ivars" warnings from clang.
Move instance variables to implementation because they are deprecated to have in the interface. Requires 'Modern' obj-c runtime. Change-Id: I60d693b7966e08ccc003818ab51ea3633c90ae17 License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Diffstat (limited to 'Slimber')
-rw-r--r--Slimber/Cocoa/CocoaController.h5
-rw-r--r--Slimber/Cocoa/CocoaController.mm5
2 files changed, 5 insertions, 5 deletions
diff --git a/Slimber/Cocoa/CocoaController.h b/Slimber/Cocoa/CocoaController.h
index 24070c6..c8287b7 100644
--- a/Slimber/Cocoa/CocoaController.h
+++ b/Slimber/Cocoa/CocoaController.h
@@ -11,9 +11,6 @@
class MainController;
class CocoaMenulet;
-@interface CocoaController : NSObject {
- CocoaMenulet* menulet;
- MainController* main;
-}
+@interface CocoaController : NSObject
@end
diff --git a/Slimber/Cocoa/CocoaController.mm b/Slimber/Cocoa/CocoaController.mm
index a0c4ef4..2ee350d 100644
--- a/Slimber/Cocoa/CocoaController.mm
+++ b/Slimber/Cocoa/CocoaController.mm
@@ -4,7 +4,10 @@
#include "Slimber/Cocoa/CocoaMenulet.h"
#include "Slimber/Cocoa/main.h"
-@implementation CocoaController
+@implementation CocoaController {
+ CocoaMenulet* menulet;
+ MainController* main;
+}
- (void) dealloc {
delete main;