mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* Use an own put for tfpginterfacedobjectlist as per bug #39846.
Maybe not the most elegant, but solves the immediately
(cherry picked from commit f532cf1698
)
This commit is contained in:
parent
90050adcfe
commit
0f6deab1d9
@ -1214,7 +1214,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