Changeset 344 for trunk/UnitKind.pas


Ignore:
Timestamp:
Dec 23, 2024, 8:16:05 AM (10 hours ago)
Author:
chronos
Message:
  • Modified: Improved implementation of TItemList class to be generic class to avoid explicit typecasting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitKind.pas

    r339 r344  
    2525  { TUnitKinds }
    2626
    27   TUnitKinds = class(TItemList)
     27  TUnitKinds = class(TItemList<TUnitKind>)
    2828    constructor Create(FreeObjects: Boolean = True);
    29     class function GetItemClass: TItemClass; override;
    3029  end;
    3130
     
    9695end;
    9796
    98 class function TUnitKinds.GetItemClass: TItemClass;
    99 begin
    100   Result := TUnitKind;
    101 end;
    102 
    10397end.
    10498
Note: See TracChangeset for help on using the changeset viewer.