mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 09:09:47 +01:00
* fixed TCollection.FindItemID as suggested by "de" (mantis #11588)
git-svn-id: trunk@11301 -
This commit is contained in:
parent
c05626b4b5
commit
f3afd6d934
@ -301,13 +301,13 @@ function TCollection.FindItemID(ID: Integer): TCollectionItem;
|
||||
Var
|
||||
I : Longint;
|
||||
begin
|
||||
Result:=Nil;
|
||||
For I:=0 to Fitems.Count-1 do
|
||||
begin
|
||||
Result:=TCollectionItem(FItems.items[I]);
|
||||
If Result.Id=Id then
|
||||
exit;
|
||||
end;
|
||||
Result:=Nil;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user