From: David Elliott <dfe@tgwbd.org>
Date: Tue, 13 Apr 2004 13:40:08 +0000 (+0000)
Subject: Make ObjcRelease() return void like [NSObject -release] not type id.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e76d459d94ca49f3b5568cdd4604b7dbb645fc2d

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
---

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];
 }