Ignore:
Timestamp:
Apr 25, 2022, 6:22:53 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Update Common package to version 0.10.
  • Modified: fgl unit replaced by Generics.Collections.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/UKeyBindings.pas

    r423 r424  
    44
    55uses
    6   Classes, SysUtils, fgl, LCLProc, LCLType, Menus, Registry;
     6  Classes, SysUtils, Generics.Collections, Generics.Defaults, LCLProc, LCLType,
     7  Menus, Registry;
    78
    89type
     
    2425  { TKeyBindings }
    2526
    26   TKeyBindings = class(TFPGObjectList<TKeyBinding>)
     27  TKeyBindings = class(TObjectList<TKeyBinding>)
    2728  private
    2829  public
     
    290291end;
    291292
    292 function CompareAlpha(const Item1, Item2: TKeyBinding): Integer;
     293function CompareAlpha(constref Item1, Item2: TKeyBinding): Integer;
    293294begin
    294295  Result := CompareStr(Item1.FullName, Item2.FullName);
     
    297298procedure TKeyBindings.SortAlpha;
    298299begin
    299   Sort(CompareAlpha);
     300  Sort(TComparer<TKeyBinding>.Construct(CompareAlpha));
    300301end;
    301302
Note: See TracChangeset for help on using the changeset viewer.