Changeset 128 for trunk/Forms/UFormFindDuplicity.pas
- Timestamp:
- Apr 8, 2022, 9:43:55 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormFindDuplicity.pas
r127 r128 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 ExtCtrls, StdCtrls, ActnList, Menus, fgl, UContact; 7 ExtCtrls, StdCtrls, ActnList, Menus, UContact, Generics.Collections, 8 Generics.Defaults; 8 9 9 10 type … … 20 21 { TFoundItems } 21 22 22 TFoundItems = class(T FPGObjectList<TFoundItem>)23 TFoundItems = class(TObjectList<TFoundItem>) 23 24 function SearchByField(Field: string): TFoundItem; 24 25 end; … … 135 136 end; 136 137 137 function FoundItemsSort(const Item1, Item2: TFoundItem): Integer;138 function FoundItemsSort(constref Item1, Item2: TFoundItem): Integer; 138 139 begin 139 140 if Item1.Contacts.Count < Item2.Contacts.Count then Result := 1 … … 161 162 end; 162 163 end; 163 FoundItems.Sort( FoundItemsSort);164 FoundItems.Sort(TComparer<TFoundItem>.Construct(FoundItemsSort)); 164 165 ReloadList; 165 166 end;
Note:
See TracChangeset
for help on using the changeset viewer.