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/Forms/FormItem.pas

    r321 r344  
    8080  J: Integer;
    8181  Control: TControl;
    82   ReferenceList: TItemList;
     82  ReferenceList: TItemList<TItem>;
    8383  ReferenceItem: TItem;
    8484begin
     
    106106      try
    107107        TComboBox(Control).Items.Clear;
    108         ReferenceList := Item.GetReferenceList(Index);
     108        ReferenceList := TItemList<TItem>(Item.GetReferenceList(Index));
    109109        if Assigned(ReferenceList) then
    110110          for J := 0 to ReferenceList.Count - 1 do
Note: See TracChangeset for help on using the changeset viewer.