Changeset 101 for Generics/TemplateGenerics/Generic
- Timestamp:
- Dec 23, 2010, 9:50:33 AM (14 years ago)
- Location:
- Generics/TemplateGenerics/Generic
- Files:
-
- 3 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericList.inc
r91 r101 26 26 procedure AddArray(Values: array of TGListItem); 27 27 procedure AddList(List: TGList); 28 procedure Assign( List: TGList);28 procedure Assign(Source: TGList); virtual; 29 29 procedure Clear; virtual; 30 30 procedure Contract; … … 126 126 end; 127 127 128 procedure TGList.Assign( List: TGList);128 procedure TGList.Assign(Source: TGList); 129 129 var 130 130 I: Integer; 131 131 begin 132 Count := List.Count;132 Count := Source.Count; 133 133 I := 0; 134 134 while I < Count do begin 135 Items[I] := List[I];135 Items[I] := Source[I]; 136 136 I := I + 1; 137 137 end;
Note:
See TracChangeset
for help on using the changeset viewer.