summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/Cocoa')
-rw-r--r--SwifTools/Cocoa/CocoaAction.h4
-rw-r--r--SwifTools/Cocoa/CocoaAction.mm8
2 files changed, 6 insertions, 6 deletions
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 d560787..7162cd2 100644
--- a/SwifTools/Cocoa/CocoaAction.mm
+++ b/SwifTools/Cocoa/CocoaAction.mm
@@ -1,4 +1,4 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2013 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
@@ -7,8 +7,10 @@
#include <SwifTools/Cocoa/CocoaAction.h>
-@implementation CocoaAction
+@implementation CocoaAction {
+ boost::function<void ()>* function;
+}
- (id) initWithFunction: (boost::function<void()>*) f {
- if ([super init]) {
+ if ((self = [super init])) {
function = f;
}