find declaration now knows, that FPC uses IUknown as default interface ancestor

git-svn-id: trunk@8510 -
This commit is contained in:
mattias 2006-01-12 10:09:06 +00:00
parent b3a5142b3d
commit 18e682b419

View File

@ -3976,9 +3976,11 @@ begin
SearchBaseClass:=
not CompareSrcIdentifier(ClassIdentNode.StartPos,'TObject');
end else begin
// if this class is not IInterface, IInterface is ancestor
// Delphi has as default interface IInterface
// FPC has as interface IUnknown
SearchBaseClass:=
not CompareSrcIdentifier(ClassIdentNode.StartPos,'IInterface');
(not CompareSrcIdentifier(ClassIdentNode.StartPos,'IInterface'))
and (not CompareSrcIdentifier(ClassIdentNode.StartPos,'IUnknown'));
end;
if not SearchBaseClass then exit;
end;