Changeset 220 for Generics/TemplateGenerics/Generic/GenericListObject.inc
- Timestamp:
- Mar 28, 2011, 9:11:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericListObject.inc
r112 r220 17 17 public 18 18 OwnsObjects: Boolean; 19 function AddNew: TGListItem; 20 function AddInsertNew(Index: TGListIndex): TGListItem; 19 21 procedure Delete(Index: TGListObjectIndex); override; 20 22 procedure Clear; override; … … 48 50 49 51 { TGListObject } 52 53 function TGListObject.AddNew: TGListItem; 54 begin 55 Result := TGListItem.Create; 56 Add(Result); 57 end; 58 59 function TGListObject.AddInsertNew(Index: TGListIndex): TGListItem; 60 begin 61 Result := TGListItem.Create; 62 Insert(Index, Result); 63 end; 50 64 51 65 procedure TGListObject.Assign(Source: TGList);
Note:
See TracChangeset
for help on using the changeset viewer.