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 /Swiften/EventLoop
parent096aab8e39493803e14f50dc6d1f4440a9e9c55d (diff)
downloadswift-contrib-88153286ea2f11fea24b950e7dbb0075ceb49a54.zip
swift-contrib-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 'Swiften/EventLoop')
-rw-r--r--Swiften/EventLoop/Cocoa/CocoaEvent.h5
-rw-r--r--Swiften/EventLoop/Cocoa/CocoaEvent.mm5
2 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/EventLoop/Cocoa/CocoaEvent.h b/Swiften/EventLoop/Cocoa/CocoaEvent.h
index bede7ff..d396678 100644
--- a/Swiften/EventLoop/Cocoa/CocoaEvent.h
+++ b/Swiften/EventLoop/Cocoa/CocoaEvent.h
@@ -13,10 +13,7 @@ namespace Swift {
class CocoaEventLoop;
}
-@interface CocoaEvent : NSObject {
- Swift::Event* event;
- Swift::CocoaEventLoop* eventLoop;
-}
+@interface CocoaEvent : NSObject
// Takes ownership of event
- (id) initWithEvent: (Swift::Event*) e eventLoop: (Swift::CocoaEventLoop*) el;
diff --git a/Swiften/EventLoop/Cocoa/CocoaEvent.mm b/Swiften/EventLoop/Cocoa/CocoaEvent.mm
index 049e3b6..05fd2a0 100644
--- a/Swiften/EventLoop/Cocoa/CocoaEvent.mm
+++ b/Swiften/EventLoop/Cocoa/CocoaEvent.mm
@@ -2,7 +2,10 @@
#include <Swiften/EventLoop/Event.h>
#include <Swiften/EventLoop/Cocoa/CocoaEventLoop.h>
-@implementation CocoaEvent
+@implementation CocoaEvent {
+ Swift::Event* event;
+ Swift::CocoaEventLoop* eventLoop;
+}
- (id) initWithEvent: (Swift::Event*) e eventLoop: (Swift::CocoaEventLoop*) el {
self = [super init];