浏览代码

* fixed is_related() for objcprotocol

git-svn-id: trunk@15451 -
Jonas Maebe 15 年之前
父节点
当前提交
5a1e4befe4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -4367,7 +4367,7 @@ implementation
 
 
        for i:=0 to prot.ImplementedInterfaces.count-1 do
        for i:=0 to prot.ImplementedInterfaces.count-1 do
          begin
          begin
-           result:=is_related_protocol(tobjectdef(prot.ImplementedInterfaces[i]),d);
+           result:=is_related_protocol(TImplementedInterface(prot.ImplementedInterfaces[i]).intfdef,d);
            if result then
            if result then
              exit;
              exit;
          end;
          end;