From e76d459d94ca49f3b5568cdd4604b7dbb645fc2d Mon Sep 17 00:00:00 2001 From: David Elliott Date: Tue, 13 Apr 2004 13:40:08 +0000 Subject: [PATCH] Make ObjcRelease() return void like [NSObject -release] not type id. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cocoa/ObjcRef.h | 2 +- src/cocoa/ObjcRef.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/cocoa/ObjcRef.h b/include/wx/cocoa/ObjcRef.h index 4e28712e89..faa11bea36 100644 --- a/include/wx/cocoa/ObjcRef.h +++ b/include/wx/cocoa/ObjcRef.h @@ -25,7 +25,7 @@ class wxObjcAutoRefBase { protected: static struct objc_object* ObjcRetain(struct objc_object*); - static struct objc_object* ObjcRelease(struct objc_object*); + static void ObjcRelease(struct objc_object*); }; // T should be a pointer like NSObject* diff --git a/src/cocoa/ObjcRef.mm b/src/cocoa/ObjcRef.mm index ace3567500..6bff7b69c9 100644 --- a/src/cocoa/ObjcRef.mm +++ b/src/cocoa/ObjcRef.mm @@ -18,8 +18,8 @@ return [obj retain]; } -/*static*/ struct objc_object* wxObjcAutoRefBase::ObjcRelease(struct objc_object* obj) +/*static*/ void wxObjcAutoRefBase::ObjcRelease(struct objc_object* obj) { - return [obj release]; + [obj release]; } -- 2.45.2