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:
@@ -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*
|
||||
|
@@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user