浏览代码

* more fixes for 11062

git-svn-id: trunk@11493 -
florian 17 年之前
父节点
当前提交
f0dcb10509
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/symdef.pas

+ 2 - 2
compiler/symdef.pas

@@ -3832,7 +3832,7 @@ implementation
               ppufile.putstring(iidstr^);
               ppufile.putstring(iidstr^);
            end;
            end;
 
 
-         if objecttype in [odt_class,odt_interfacecorba] then
+         if assigned(ImplementedInterfaces) then
            begin
            begin
              ppufile.putlongint(ImplementedInterfaces.Count);
              ppufile.putlongint(ImplementedInterfaces.Count);
              for i:=0 to ImplementedInterfaces.Count-1 do
              for i:=0 to ImplementedInterfaces.Count-1 do
@@ -3898,7 +3898,7 @@ implementation
            end
            end
          else
          else
            tstoredsymtable(symtable).deref;
            tstoredsymtable(symtable).deref;
-         if objecttype in [odt_class,odt_interfacecorba] then
+         if assigned(ImplementedInterfaces) then
            begin
            begin
              for i:=0 to ImplementedInterfaces.count-1 do
              for i:=0 to ImplementedInterfaces.count-1 do
                TImplementedInterface(ImplementedInterfaces[i]).deref;
                TImplementedInterface(ImplementedInterfaces[i]).deref;