From 605a42ed53761b887e067bab0cda5edc6c920268 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 31 Aug 2010 22:02:38 +0000 Subject: [PATCH] Fix the return type of NSDistantObject +autorelease to return id, not void. Type-dependent dispatch in libobjc2 discovered that some things are picking up this method signature by accident and calling NSObject's -autorelease with the wrong types. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31224 72102866-910b-0410-8b05-ffd578937521 --- Source/NSDistantObject.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/NSDistantObject.m b/Source/NSDistantObject.m index 7fb8516f5..18305f6bc 100644 --- a/Source/NSDistantObject.m +++ b/Source/NSDistantObject.m @@ -130,7 +130,7 @@ enum proxyLocation + (id) initWithCoder: (NSCoder*)aCoder; + (id) initWithLocal: (id)anObject connection: (NSConnection*)aConnection; + (id) initWithTarget: (unsigned)target connection: (NSConnection*)aConnection; -+ (void) autorelease; ++ (id) autorelease; + (void) release; + (id) retain; + (BOOL) respondsToSelector: (SEL)sel; @@ -138,8 +138,9 @@ enum proxyLocation @implementation GSDistantObjectPlaceHolder -+ (void) autorelease ++ (id) autorelease { + return self; } + (void) release