Browse Source

fpdoc: fixed compile

git-svn-id: trunk@41084 -
Mattias Gaertner 6 years ago
parent
commit
c99972bc43
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/fpdoc/dw_html.pp

+ 2 - 2
utils/fpdoc/dw_html.pp

@@ -3347,10 +3347,10 @@ var
     TDEl := CreateTD(TREl);
     TDEl := CreateTD(TREl);
     CodeEl := CreateCode(CreatePara(TDEl));
     CodeEl := CreateCode(CreatePara(TDEl));
     AppendKw(CodeEl, 'type');
     AppendKw(CodeEl, 'type');
-    if AClass.ObjKind=okGeneric then
+    if AClass.GenericTemplateTypes.Count>0 then
       AppendKw(CodeEl, ' generic ');
       AppendKw(CodeEl, ' generic ');
     AppendText(CodeEl, ' ' + UTF8Decode(AClass.Name) + ' ');
     AppendText(CodeEl, ' ' + UTF8Decode(AClass.Name) + ' ');
-    if AClass.ObjKind=okGeneric then
+    if AClass.GenericTemplateTypes.Count>0 then
       AppendGenericTypes(CodeEl,AClass.GenericTemplateTypes,false);
       AppendGenericTypes(CodeEl,AClass.GenericTemplateTypes,false);
     AppendSym(CodeEl, '=');
     AppendSym(CodeEl, '=');
     AppendText(CodeEl, ' ');
     AppendText(CodeEl, ' ');