diff --git a/packages/webidl/src/webidltopas.pp b/packages/webidl/src/webidltopas.pp index 0999bf0c8e..5f00c3f25f 100644 --- a/packages/webidl/src/webidltopas.pp +++ b/packages/webidl/src/webidltopas.pp @@ -1437,6 +1437,7 @@ begin else begin if (D is TIDLTypeDefDefinition) + or (D is TIDLEnumDefinition) or ((D Is TIDLFunctionDefinition) and (foCallBack in TIDLFunctionDefinition(D).Options)) then begin CN:=TypePrefix+CN;