]> git.saurik.com Git - wxWidgets.git/commitdiff
Make ObjcRelease() return void like [NSObject -release] not type id.
authorDavid Elliott <dfe@tgwbd.org>
Tue, 13 Apr 2004 13:40:08 +0000 (13:40 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 13 Apr 2004 13:40:08 +0000 (13:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/ObjcRef.h
src/cocoa/ObjcRef.mm

index 4e28712e89b80e2773d7db4c0dd30f2ac2c19354..faa11bea36aef5b944ed3fac9c2a28402a956da3 100644 (file)
@@ -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*
index ace35675002a0ca7bbc8385e6e2d3c41f1b8d4e2..6bff7b69c990663e5f8fd82fb392eadaeabeafb0 100644 (file)
@@ -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];
 }