* Fix uninitialized result warnings

This commit is contained in:
michael 2021-02-16 09:08:59 +00:00
parent 67dc093559
commit d19e385f71

View File

@ -1300,6 +1300,7 @@ end;
function TDictionary<TKey, TValue>.ExtractPair(const Key: TKey): TMyPair;
begin
Result:=Default(TMyPair);
if FMap.Has(Key) then
begin
Result.Create(Key,TValue(FMap.get(key)));
@ -1419,6 +1420,7 @@ Var
begin
A:=TJSValueDynArray(FVal.Value);
Result:=Default(TMyPair);
Result.Create(TKey(A[0]),TValue(A[1]));
end;