webidl: fixed job call

This commit is contained in:
mattias 2022-07-26 20:31:28 +02:00
parent 1072e68498
commit 2c6b824176
2 changed files with 3 additions and 1 deletions

View File

@ -1259,6 +1259,8 @@ function TBaseWebIDLToPas.CloneArgument(Arg: TIDLArgumentDefinition
begin
Result:=Arg.Clone(nil);
ResolveTypeDef(Result);
if Arg.Data<>nil then
Result.Data:=ClonePasData(TPasData(Arg.Data),Result);
end;
procedure TBaseWebIDLToPas.AddOverloads(aList: TFPObjectlist;

View File

@ -650,7 +650,7 @@ begin
ArgNames:=TStringList.Create;
try
// create wrapper callback
Code:='function JOBCall'+FuncName+'(const aMethod: TMethod; const H: TJOBCallbackHelper): PByte;'+sLineBreak;
Code:='function JOBCall'+FuncName+'(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;'+sLineBreak;
ArgNames.Add('aMethod');
ArgNames.Add('h');
VarSection:='';