mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 20:21:20 +02:00
Win32,WinCE: use faster CompareValue() instead of ComCtrls.CompareItems() for sort LCL: unpublished CompareItems() - nobody uses it now.
git-svn-id: trunk@31459 -
This commit is contained in:
parent
84d29ef869
commit
444d9eb06f
@ -3065,7 +3065,6 @@ type
|
||||
|
||||
function CompareExpandedNodes(Data1, Data2: Pointer): integer;
|
||||
function CompareTextWithExpandedNode(Key, Data: Pointer): integer;
|
||||
function CompareItems(Item1, Item2: Pointer): Integer;
|
||||
|
||||
procedure Register;
|
||||
|
||||
|
@ -1237,7 +1237,7 @@ var
|
||||
Item1: TListItem absolute lParam1;
|
||||
Item2: TListItem absolute lParam2;
|
||||
begin
|
||||
Result := CompareItems(Item1, Item2);
|
||||
Result := CompareValue(Item1.Index, Item2.Index);
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomListView.SetSort(const ALV: TCustomListView;
|
||||
|
@ -971,7 +971,7 @@ var
|
||||
Item1: TListItem absolute lParam1;
|
||||
Item2: TListItem absolute lParam2;
|
||||
begin
|
||||
Result := CompareItems(Item1, Item2);
|
||||
Result := CompareValue(Item1.Index, Item2.Index);
|
||||
end;
|
||||
|
||||
class procedure TWinCEWSCustomListView.SetSort(const ALV: TCustomListView;
|
||||
|
Loading…
Reference in New Issue
Block a user