Changeset 247 for Generics


Ignore:
Timestamp:
May 24, 2011, 12:36:12 PM (13 years ago)
Author:
george
Message:
  • Fixed: Various minor bugs and enhancements.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Generic/GenericList.inc

    r219 r247  
    3030    procedure AddList(List: TGList);
    3131    procedure Assign(Source: TGList); virtual;
     32    constructor Create; virtual;
    3233    procedure Clear; virtual;
    3334    procedure Delete(Index: TGListIndex); virtual;
     
    5253    procedure Replace(Index: TGListIndex; Source: TGList);
    5354    procedure Sort(Compare: TGListSortCompare);
    54     procedure SetArray(Values: TGListItemArray);
     55    procedure SetArray(Values: array of TGListItem);
    5556    property Count: TGListIndex read FCount write SetCount;
    5657    property Capacity: TGListIndex read GetCapacity write SetCapacity;
     
    7374
    7475{ TGList }
     76
     77constructor TGList.Create;
     78begin
     79  FCount := 0;
     80end;
    7581
    7682procedure TGList.Replace(Index: TGListIndex; Source: TGList);
     
    405411end;
    406412
    407 procedure TGList.SetArray(Values: TGListItemArray);
     413procedure TGList.SetArray(Values: array of TGListItem);
    408414var
    409415  I: TGListIndex;
Note: See TracChangeset for help on using the changeset viewer.