mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-02 16:50:31 +02:00
* support varbyref and vararray (the latter if convertable to a single
element of its element type) in TBinaryObjectWriter.WriteVariant by letting variantmanager handle their conversion transparently git-svn-id: trunk@13075 -
This commit is contained in:
parent
99a02a93ca
commit
d89eedf38d
@ -375,7 +375,9 @@ end;
|
||||
|
||||
procedure TBinaryObjectWriter.WriteVariant(const VarValue: variant);
|
||||
begin
|
||||
case tvardata(VarValue).vtype of
|
||||
{ The variant manager will handle varbyref and vararray transparently for us
|
||||
}
|
||||
case (tvardata(VarValue).vtype and varTypeMask) of
|
||||
varEmpty:
|
||||
begin
|
||||
WriteValue(vaNil);
|
||||
|
Loading…
Reference in New Issue
Block a user