|
@@ -1214,7 +1214,8 @@ end;
|
|
|
|
|
|
procedure TFPGInterfacedObjectList.Put(Index: Integer; const Item: T);
|
|
procedure TFPGInterfacedObjectList.Put(Index: Integer; const Item: T);
|
|
begin
|
|
begin
|
|
- inherited Put(Index, @Item);
|
|
|
|
|
|
+ CheckIndex(Index);
|
|
|
|
+ InternalItems[Index] := @Item; // eventually calls copyitem()
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFPGInterfacedObjectList.Add(const Item: T): Integer;
|
|
function TFPGInterfacedObjectList.Add(const Item: T): Integer;
|