Changeset 344 for trunk/Nation.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/Nation.pas

    r317 r344  
    2121  { TNations }
    2222
    23   TNations = class(TItemList)
    24     class function GetItemClass: TItemClass; override;
     23  TNations = class(TItemList<TNation>)
    2524  end;
    2625
     
    6766end;
    6867
    69 { TNations }
    70 
    71 class function TNations.GetItemClass: TItemClass;
    72 begin
    73   Result := TNation;
    74 end;
    75 
    7668end.
    7769
Note: See TracChangeset for help on using the changeset viewer.