mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 00:10:19 +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);
|
||||
begin
|
||||
inherited Put(Index, @Item);
|
||||
CheckIndex(Index);
|
||||
InternalItems[Index] := @Item; // eventually calls copyitem()
|
||||
end;
|
||||
|
||||
function TFPGInterfacedObjectList.Add(const Item: T): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user