mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:29:26 +02:00
parent
6b3b3d5c0c
commit
ede4bac345
@ -455,7 +455,7 @@ var
|
|||||||
TIref: ITypeInfo;
|
TIref: ITypeInfo;
|
||||||
BstrName,BstrNameRef,BstrDocString : WideString;
|
BstrName,BstrNameRef,BstrDocString : WideString;
|
||||||
s,sl,sPropDispIntfc,sType,sConv,sFunc,sPar,sVarName,sMethodName,
|
s,sl,sPropDispIntfc,sType,sConv,sFunc,sPar,sVarName,sMethodName,
|
||||||
sPropParam,sPropParam2,sPropParam3:string;
|
sPropParam,sPropParam2,sPropParam3,tmp: string;
|
||||||
sEventSignatures,sEventFunctions,sEventProperties,sEventImplementations:string;
|
sEventSignatures,sEventFunctions,sEventProperties,sEventImplementations:string;
|
||||||
i,j,k:integer;
|
i,j,k:integer;
|
||||||
FD: lpFUNCDESC;
|
FD: lpFUNCDESC;
|
||||||
@ -808,10 +808,14 @@ begin
|
|||||||
sParam:=sPropParam;
|
sParam:=sPropParam;
|
||||||
sDefault:=sl;
|
sDefault:=sl;
|
||||||
end;
|
end;
|
||||||
if bPropHasParam then
|
if sType='OleVariant' then
|
||||||
s:=s+format(' procedure Set_%s(const %s:%s); %s;'#13#10,[sMethodName,sPropParam3,sType,sConv])
|
tmp:=' procedure Set_%s(%s:%s); %s;'#13#10
|
||||||
else
|
else
|
||||||
s:=s+format(' procedure Set_%s(const %s:%s); %s;'#13#10,[sMethodName,sVarName,sType,sConv]);
|
tmp:=' procedure Set_%s(Const %s:%s); %s;'#13#10;
|
||||||
|
if bPropHasParam then
|
||||||
|
s:=s+format(tmp,[sMethodName,sPropParam3,sType,sConv])
|
||||||
|
else
|
||||||
|
s:=s+format(tmp,[sMethodName,sVarName,sType,sConv]);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user