mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 10:49:20 +02:00
* TList<>.Pack() with method pointer parameter already passes Default(T) to the check function, so use R instead of Default(T) in the Pack() overload without method pointer
This commit is contained in:
parent
a7dab71da1
commit
5d65194777
@ -1803,7 +1803,7 @@ begin
|
|||||||
Pack(
|
Pack(
|
||||||
function(const L, R: T): Boolean
|
function(const L, R: T): Boolean
|
||||||
begin
|
begin
|
||||||
Result := FComparer.Compare(L, Default(T)) = 0;
|
Result := FComparer.Compare(L, R) = 0;
|
||||||
end);
|
end);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user