Changeset 424 for trunk/LocalPlayer
- Timestamp:
- Apr 25, 2022, 6:22:53 PM (3 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r416 r424 7 7 Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, 8 8 Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 9 ButtonB, PVSB, Types, fgl, IsoEngine;9 ButtonB, PVSB, Types, Generics.Collections, IsoEngine; 10 10 11 11 const … … 60 60 { THistItems } 61 61 62 THistItems = class(T FPGObjectList<THistItem>)62 THistItems = class(TObjectList<THistItem>) 63 63 function AddNew(Kind, No, Pos: Integer; SearchContent: string): THistItem; 64 64 end; -
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.