Changeset 424 for trunk/LocalPlayer


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.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Help.pas

    r416 r424  
    77  Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType,
    88  Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
    9   ButtonB, PVSB, Types, fgl, IsoEngine;
     9  ButtonB, PVSB, Types, Generics.Collections, IsoEngine;
    1010
    1111const
     
    6060  { THistItems }
    6161
    62   THistItems = class(TFPGObjectList<THistItem>)
     62  THistItems = class(TObjectList<THistItem>)
    6363    function AddNew(Kind, No, Pos: Integer; SearchContent: string): THistItem;
    6464  end;
  • 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.