mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 14:09:17 +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
|
begin
|
||||||
Result:=Arg.Clone(nil);
|
Result:=Arg.Clone(nil);
|
||||||
ResolveTypeDef(Result);
|
ResolveTypeDef(Result);
|
||||||
|
if Arg.Data<>nil then
|
||||||
|
Result.Data:=ClonePasData(TPasData(Arg.Data),Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBaseWebIDLToPas.AddOverloads(aList: TFPObjectlist;
|
procedure TBaseWebIDLToPas.AddOverloads(aList: TFPObjectlist;
|
||||||
|
@ -650,7 +650,7 @@ begin
|
|||||||
ArgNames:=TStringList.Create;
|
ArgNames:=TStringList.Create;
|
||||||
try
|
try
|
||||||
// create wrapper callback
|
// 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('aMethod');
|
||||||
ArgNames.Add('h');
|
ArgNames.Add('h');
|
||||||
VarSection:='';
|
VarSection:='';
|
||||||
|
Loading…
Reference in New Issue
Block a user