diff options
-rw-r--r-- | Slimber/Cocoa/CocoaController.h | 5 | ||||
-rw-r--r-- | Slimber/Cocoa/CocoaController.mm | 5 | ||||
-rw-r--r-- | SwifTools/Cocoa/CocoaAction.h | 4 | ||||
-rw-r--r-- | SwifTools/Cocoa/CocoaAction.mm | 4 | ||||
-rw-r--r-- | SwifTools/URIHandler/MacOSXURIHandler.mm | 7 | ||||
-rw-r--r-- | Swiften/EventLoop/Cocoa/CocoaEvent.h | 5 | ||||
-rw-r--r-- | Swiften/EventLoop/Cocoa/CocoaEvent.mm | 5 |
7 files changed, 20 insertions, 15 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 @@ -12,8 +12,5 @@ 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 @@ -5,5 +5,8 @@ #include "Slimber/Cocoa/main.h" -@implementation CocoaController +@implementation CocoaController { + CocoaMenulet* menulet; + MainController* main; +} - (void) dealloc { diff --git a/SwifTools/Cocoa/CocoaAction.h b/SwifTools/Cocoa/CocoaAction.h index a46ef7c..0ef993e 100644 --- a/SwifTools/Cocoa/CocoaAction.h +++ b/SwifTools/Cocoa/CocoaAction.h @@ -10,7 +10,5 @@ #include <boost/function.hpp> -@interface CocoaAction : NSObject { - boost::function<void ()>* function; -} +@interface CocoaAction : NSObject /** diff --git a/SwifTools/Cocoa/CocoaAction.mm b/SwifTools/Cocoa/CocoaAction.mm index d315caf..7162cd2 100644 --- a/SwifTools/Cocoa/CocoaAction.mm +++ b/SwifTools/Cocoa/CocoaAction.mm @@ -7,5 +7,7 @@ #include <SwifTools/Cocoa/CocoaAction.h> -@implementation CocoaAction +@implementation CocoaAction { + boost::function<void ()>* function; +} - (id) initWithFunction: (boost::function<void()>*) f { diff --git a/SwifTools/URIHandler/MacOSXURIHandler.mm b/SwifTools/URIHandler/MacOSXURIHandler.mm index d386c86..cdfba33 100644 --- a/SwifTools/URIHandler/MacOSXURIHandler.mm +++ b/SwifTools/URIHandler/MacOSXURIHandler.mm @@ -13,11 +13,16 @@ using namespace Swift; @interface MacOSXURIEventHandler : NSObject { - URIHandler* handler; } + - (id) initWithHandler: (URIHandler*) handler; - (void) getUrl: (NSAppleEventDescriptor*) event withReplyEvent: (NSAppleEventDescriptor*) replyEvent; @end + @implementation MacOSXURIEventHandler + { + URIHandler* handler; + } + - (id) initWithHandler: (URIHandler*) h { if ((self = [super init])) { 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 @@ -14,8 +14,5 @@ namespace Swift { } -@interface CocoaEvent : NSObject { - Swift::Event* event; - Swift::CocoaEventLoop* eventLoop; -} +@interface CocoaEvent : NSObject // Takes ownership of event 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 @@ -3,5 +3,8 @@ #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 { |