mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
... and check superclasses when checking protocol conformance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30589 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b1baeac00
commit
7a176201c6
1 changed files with 15 additions and 11 deletions
|
@ -1066,6 +1066,8 @@ BOOL class_conformsToProtocol(Class cls, Protocol *protocol)
|
|||
{
|
||||
struct objc_protocol_list *protocols;
|
||||
|
||||
while (cls)
|
||||
{
|
||||
for (protocols = cls->protocols;
|
||||
protocols != NULL ; protocols = protocols->next)
|
||||
{
|
||||
|
@ -1083,6 +1085,8 @@ BOOL class_conformsToProtocol(Class cls, Protocol *protocol)
|
|||
}
|
||||
}
|
||||
}
|
||||
cls = cls ->super_class;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue