diff --git a/ChangeLog b/ChangeLog index 54bb19c59..a9d625aac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-23 Riccardo Mottola + + * Source/NSPointerFunctions.m, + * Headers/Foundation/NSPointerFunctions.h: Fix return pointer type + 2009-01-23 Richard Frith-Macdonald * Headers/Additions/GNUstepBase/GNUstep.h: diff --git a/Headers/Foundation/NSPointerFunctions.h b/Headers/Foundation/NSPointerFunctions.h index 1608f9a7f..fbb61b9dc 100644 --- a/Headers/Foundation/NSPointerFunctions.h +++ b/Headers/Foundation/NSPointerFunctions.h @@ -105,7 +105,7 @@ typedef NSUInteger NSPointerFunctionsOptions; - (void* (*)(const void *item, NSUInteger (*size)(const void *item), BOOL shouldCopy)) acquireFunction; -- (NSString (*)(const void *item)) descriptionFunction; +- (NSString *(*)(const void *item)) descriptionFunction; - (NSUInteger (*)(const void *item, NSUInteger (*size)(const void *item))) hashFunction; @@ -119,7 +119,7 @@ typedef NSUInteger NSPointerFunctionsOptions; - (void) setAcquireFunction: (void* (*)(const void *item, NSUInteger (*size)(const void *item), BOOL shouldCopy))func; -- (void) setDescriptionFunction: (NSString (*)(const void *item))func; +- (void) setDescriptionFunction: (NSString *(*)(const void *item))func; - (void) setHashFunction: (NSUInteger (*)(const void *item, NSUInteger (*size)(const void *item)))func; diff --git a/Source/NSPointerFunctions.m b/Source/NSPointerFunctions.m index 5692a5c76..15747d8f9 100644 --- a/Source/NSPointerFunctions.m +++ b/Source/NSPointerFunctions.m @@ -31,7 +31,7 @@ typedef struct { void* (*acquireFunction)(const void *item, NSUInteger (*size)(const void *item), BOOL shouldCopy); - NSString (*descriptionFunction)(const void *item); + NSString *(*descriptionFunction)(const void *item); NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item)); @@ -89,7 +89,7 @@ typedef struct { return _acquireFunction; } -- (NSString (*)(const void *item)) descriptionFunction +- (NSString *(*)(const void *item)) descriptionFunction { return _descriptionFunction; } @@ -118,7 +118,7 @@ typedef struct { _acquireFunction = func; } -- (void) setDescriptionFunction: (NSString (*)(const void *item))func +- (void) setDescriptionFunction: (NSString *(*)(const void *item))func { _descriptionFunction = func; }