Made NSAllocateObject() and NSDeallocateObject() use / take id instead of NSObject*. This matches Apple's definition and gets rid of 'assignment / initialization from distinct Objective-C type' warnings when you use NSAllocateObject() to create an instance without an explicit cast.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2010-02-13 17:33:23 +00:00
parent 071e91adab
commit 6bf6ec959b
2 changed files with 6 additions and 6 deletions

View file

@ -298,7 +298,7 @@ extern "C" {
* instance variables of the object.<br />
* This function is used by the [NSObject+allocWithZone:] method.
*/
GS_EXPORT NSObject *
GS_EXPORT id
NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
/**
@ -306,7 +306,7 @@ NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
* This function is used by the [NSObject-dealloc] method.
*/
GS_EXPORT void
NSDeallocateObject(NSObject *anObject);
NSDeallocateObject(id anObject);
/**
* Used to copy anObject. This makes a bitwise copy of anObject to