* 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:
Sven/Sarah Barth 2024-12-26 18:25:43 +01:00
parent a7dab71da1
commit 5d65194777

View File

@ -1803,7 +1803,7 @@ begin
Pack(
function(const L, R: T): Boolean
begin
Result := FComparer.Compare(L, Default(T)) = 0;
Result := FComparer.Compare(L, R) = 0;
end);
end;