Changeset 424 for trunk/LocalPlayer/UKeyBindings.pas
- Timestamp:
- Apr 25, 2022, 6:22:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/UKeyBindings.pas
r423 r424 4 4 5 5 uses 6 Classes, SysUtils, fgl, LCLProc, LCLType, Menus, Registry; 6 Classes, SysUtils, Generics.Collections, Generics.Defaults, LCLProc, LCLType, 7 Menus, Registry; 7 8 8 9 type … … 24 25 { TKeyBindings } 25 26 26 TKeyBindings = class(T FPGObjectList<TKeyBinding>)27 TKeyBindings = class(TObjectList<TKeyBinding>) 27 28 private 28 29 public … … 290 291 end; 291 292 292 function CompareAlpha(const Item1, Item2: TKeyBinding): Integer;293 function CompareAlpha(constref Item1, Item2: TKeyBinding): Integer; 293 294 begin 294 295 Result := CompareStr(Item1.FullName, Item2.FullName); … … 297 298 procedure TKeyBindings.SortAlpha; 298 299 begin 299 Sort( CompareAlpha);300 Sort(TComparer<TKeyBinding>.Construct(CompareAlpha)); 300 301 end; 301 302
Note:
See TracChangeset
for help on using the changeset viewer.