Browse Source

+ Fixed bugs reported by Romio in TCollection

michael 26 years ago
parent
commit
46ff2e82bc
1 changed files with 6 additions and 3 deletions
  1. 6 3
      fcl/inc/collect.inc

+ 6 - 3
fcl/inc/collect.inc

@@ -230,7 +230,7 @@ end;
 function TCollection.GetItem(Index: Integer): TCollectionItem;
 function TCollection.GetItem(Index: Integer): TCollectionItem;
 
 
 begin
 begin
-   Result:=TCollectionItem(FItems[Index]);
+   Result:=TCollectionItem(FItems.Items[Index]);
 end;
 end;
 
 
 
 
@@ -260,7 +260,7 @@ end;
 constructor TCollection.Create(AItemClass: TCollectionItemClass);
 constructor TCollection.Create(AItemClass: TCollectionItemClass);
 
 
 begin
 begin
-  FItemClass:=ItemClass;
+  FItemClass:=AItemClass;
   FItems:=TList.Create;
   FItems:=TList.Create;
 end;
 end;
 
 
@@ -340,7 +340,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.3  1998-10-02 22:41:23  michael
+  Revision 1.4  1999-04-05 09:56:04  michael
+  + Fixed bugs reported by Romio in TCollection
+
+  Revision 1.3  1998/10/02 22:41:23  michael
   + Added exceptions for error handling
   + Added exceptions for error handling
 
 
   Revision 1.2  1998/05/27 11:41:41  michael
   Revision 1.2  1998/05/27 11:41:41  michael