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
This commit is contained in:
David Elliott
2004-04-13 13:40:08 +00:00
parent f76858d8f1
commit e76d459d94
2 changed files with 3 additions and 3 deletions

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

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