mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 15:10:40 +02:00
+ partial fix for Mantis #36358: apply partial patch by Imants Gulbis to add assignment operator for TValue from Comp and IUnknown
git-svn-id: trunk@43777 -
This commit is contained in:
parent
5610f992b4
commit
8ff14ed5d1
@ -159,11 +159,13 @@ type
|
||||
class operator := (AValue: Extended): TValue; inline;
|
||||
{$endif}
|
||||
class operator := (AValue: Currency): TValue; inline;
|
||||
class operator := (AValue: Comp): TValue; inline;
|
||||
class operator := (AValue: Int64): TValue; inline;
|
||||
class operator := (AValue: QWord): TValue; inline;
|
||||
class operator := (AValue: TObject): TValue; inline;
|
||||
class operator := (AValue: TClass): TValue; inline;
|
||||
class operator := (AValue: Boolean): TValue; inline;
|
||||
class operator := (AValue: IUnknown): TValue; inline;
|
||||
property DataSize: SizeInt read GetDataSize;
|
||||
property Kind: TTypeKind read GetTypeKind;
|
||||
property TypeData: PTypeData read GetTypeDataProp;
|
||||
@ -2259,6 +2261,11 @@ begin
|
||||
Make(@AValue, System.TypeInfo(AValue), Result);
|
||||
end;
|
||||
|
||||
class operator TValue.:=(AValue: Comp): TValue;
|
||||
begin
|
||||
Make(@AValue, System.TypeInfo(AValue), Result);
|
||||
end;
|
||||
|
||||
class operator TValue.:=(AValue: Int64): TValue;
|
||||
begin
|
||||
Make(@AValue, System.TypeInfo(AValue), Result);
|
||||
@ -2284,6 +2291,10 @@ begin
|
||||
Make(@AValue, System.TypeInfo(AValue), Result);
|
||||
end;
|
||||
|
||||
class operator TValue.:=(AValue: IUnknown): TValue;
|
||||
begin
|
||||
Make(@AValue, System.TypeInfo(AValue), Result);
|
||||
end;
|
||||
|
||||
function Invoke(aCodeAddress: CodePointer; const aArgs: TValueArray;
|
||||
aCallConv: TCallConv; aResultType: PTypeInfo; aIsStatic: Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user