From af8fc16268a06422b4869aa46b049803669b350a Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 9 Sep 2010 22:42:47 +0000 Subject: [PATCH] Replace a call to -[Protocol name] with protocol_getName git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31282 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSProtocolChecker.m | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b5126b498..a2937bd5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-09 Eric Wasylishen + + * Source/NSProtocolChecker.m: Replace a -[Protocol name] with + protocol_getName() + 2010-09-09 Eric Wasylishen * Source/NSDistantObject.m: #ifdef to disable category diff --git a/Source/NSProtocolChecker.m b/Source/NSProtocolChecker.m index 3f2f6e4bd..9aba5ed5f 100644 --- a/Source/NSProtocolChecker.m +++ b/Source/NSProtocolChecker.m @@ -98,13 +98,13 @@ { [NSException raise: NSInvalidArgumentException format: @"<%s -%@> not declared", - [_myProtocol name], NSStringFromSelector([anInvocation selector])]; + protocol_getName(_myProtocol), NSStringFromSelector([anInvocation selector])]; } else { [NSException raise: NSInvalidArgumentException format: @"<%s +%@> not declared", - [_myProtocol name], NSStringFromSelector([anInvocation selector])]; + protocol_getName(_myProtocol), NSStringFromSelector([anInvocation selector])]; } } [anInvocation invokeWithTarget: _myTarget];