mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* correctly handle IsEmpty if Nil had been passed to Make
git-svn-id: trunk@36984 -
This commit is contained in:
parent
a03b9d0fc4
commit
ae6352611f
@ -703,7 +703,9 @@ end;
|
||||
|
||||
function TValue.GetIsEmpty: boolean;
|
||||
begin
|
||||
result := (FData.FTypeInfo=nil);
|
||||
result := (FData.FTypeInfo=nil) or
|
||||
((Kind in [tkSString, tkObject, tkRecord, tkArray]) and not Assigned(FData.FValueData)) or
|
||||
((Kind in [tkClass, tkClassRef, tkInterfaceRaw]) and not Assigned(FData.FAsPointer));
|
||||
end;
|
||||
|
||||
function TValue.IsArray: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user