mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Don't access isa directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31560 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef81066edc
commit
704532b50c
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ static IMP gs_objc_msg_forward2 (id receiver, SEL sel)
|
|||
* NB. object_getClass() and class_respondsToSelector() should both
|
||||
* return NULL when given NULL arguments, so they are safe to use.
|
||||
*/
|
||||
c = object_getClass(receiver);
|
||||
c = receiver->isa;
|
||||
if (class_respondsToSelector(c, @selector(methodSignatureForSelector:)))
|
||||
{
|
||||
sig = [receiver methodSignatureForSelector: sel];
|
||||
|
@ -243,7 +243,7 @@ BOOL class_respondsToSelector(Class cls, SEL sel);
|
|||
*/
|
||||
static id gs_objc_proxy_lookup(id receiver, SEL op)
|
||||
{
|
||||
id cls = object_getClass(receiver);
|
||||
id cls = receiver->isa;
|
||||
BOOL resolved = NO;
|
||||
|
||||
/* Let the class try to add a method for this thing. */
|
||||
|
|
Loading…
Reference in a new issue