]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/ObjcRef.h
don't leave two conscutive separators after "moving" a standard menu item to the...
[wxWidgets.git] / include / wx / cocoa / ObjcRef.h
index 2af1c2598a16715c39bb1d3c5cc3de9faccd7819..faa11bea36aef5b944ed3fac9c2a28402a956da3 100644 (file)
@@ -9,6 +9,8 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#ifndef _WX_COCOA_OBJCREF_H__
+#define _WX_COCOA_OBJCREF_H__
 /*
 wxObjcAutoRefFromAlloc: construct a reference to an object that was
 [NSObject -alloc]'ed and thus does not need a retain
@@ -23,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*
@@ -74,3 +76,4 @@ public:
     {   return wxObjcAutoRefFromAlloc<T>::operator=(otherRef); }
 };
 
+#endif //ndef _WX_COCOA_OBJCREF_H__