X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/256af34f5132dcdbce8f36d6ce8e10108b21c4cc..8c9f8f91cd62335261ee29762747218f28d129de:/include/wx/cocoa/ObjcRef.h

diff --git a/include/wx/cocoa/ObjcRef.h b/include/wx/cocoa/ObjcRef.h
index 4e28712e89..17493d14da 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*
@@ -64,7 +64,7 @@ class wxObjcAutoRef: public wxObjcAutoRefFromAlloc<T>
 public:
     wxObjcAutoRef(T p = 0)
     :   wxObjcAutoRefFromAlloc<T>(p)
-    {   ObjcRetain(m_ptr); }
+    {   ObjcRetain(wxObjcAutoRefFromAlloc<T>::m_ptr); }
     ~wxObjcAutoRef() {}
     wxObjcAutoRef(const wxObjcAutoRef& otherRef)
     :   wxObjcAutoRefFromAlloc<T>(otherRef)