Browse Source

webidl: wasmjob: use const for class function cast

mattias 2 years ago
parent
commit
a8b4d702e2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/webidl/src/webidltowasmjob.pp

+ 2 - 2
packages/webidl/src/webidltowasmjob.pp

@@ -393,8 +393,8 @@ begin
   Result:=0;
   aClassName:=GetName(Intf);
   aPasIntfName:=GetPasIntfName(Intf);
-  AddLn('class function Cast(Intf: IJSObject): '+aPasIntfName+';');
-  Code:='class function '+aClassName+'.Cast(Intf: IJSObject): '+aPasIntfName+';'+sLineBreak;
+  AddLn('class function Cast(const Intf: IJSObject): '+aPasIntfName+';');
+  Code:='class function '+aClassName+'.Cast(const Intf: IJSObject): '+aPasIntfName+';'+sLineBreak;
   Code:=Code+'begin'+sLineBreak;
   Code:=Code+'  Result:='+aClassName+'.JOBCast(Intf);'+sLineBreak;
   Code:=Code+'end;'+sLineBreak;