mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 10:49:20 +02:00
* Use an own put for tfpginterfacedobjectlist as per bug #39846.
Maybe not the most elegant, but solves the immediately
This commit is contained in:
parent
27c1bb3bea
commit
f532cf1698
@ -1228,7 +1228,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user