mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 10:48:30 +02:00
webidl: fixed job call
This commit is contained in:
parent
1072e68498
commit
2c6b824176
@ -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;
|
||||
|
@ -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:='';
|
||||
|
Loading…
Reference in New Issue
Block a user