From a985b2c891cd7b925f01837323834aa6a9a8c23d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 8 Jun 2011 22:50:28 +0000 Subject: [PATCH] adapting to init pattern git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/listbox.mm | 4 ++-- src/osx/cocoa/menu.mm | 4 ++-- src/osx/cocoa/menuitem.mm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 8f38d778cb..4b10d40656 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -161,7 +161,7 @@ protected : - (id) init { - [super init]; + self = [super init]; column = nil; return self; } @@ -224,7 +224,7 @@ protected: - (id) init { - [super init]; + self = [super init]; impl = nil; return self; } diff --git a/src/osx/cocoa/menu.mm b/src/osx/cocoa/menu.mm index 346b992bf3..22fabe5344 100644 --- a/src/osx/cocoa/menu.mm +++ b/src/osx/cocoa/menu.mm @@ -38,7 +38,7 @@ - (id) initWithTitle:(NSString*) title { - [super initWithTitle:title]; + self = [super initWithTitle:title]; impl = NULL; return self; } @@ -69,7 +69,7 @@ - (id) init { - [super init]; + self = [super init]; return self; } diff --git a/src/osx/cocoa/menuitem.mm b/src/osx/cocoa/menuitem.mm index 969a11b44c..715517244a 100644 --- a/src/osx/cocoa/menuitem.mm +++ b/src/osx/cocoa/menuitem.mm @@ -74,8 +74,8 @@ SEL wxOSXGetSelectorFromID(int menuId ) - (id) initWithTitle:(NSString *)aString action:(SEL)aSelector keyEquivalent:(NSString *)charCode { - [super initWithTitle:aString action:aSelector keyEquivalent:charCode]; - return self; + self = [super initWithTitle:aString action:aSelector keyEquivalent:charCode]; + return self; } - (void) clickedAction: (id) sender -- 2.45.2