mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:41:35 +02:00
LazUtils: Fix compilation with FPC trunk. Remove a useless test "if FHashTableSize>0".
git-svn-id: trunk@48845 -
This commit is contained in:
parent
7c10064ae9
commit
fe0840ae84
@ -80,19 +80,18 @@ var
|
||||
begin
|
||||
Result:=nil;
|
||||
continue:=True;
|
||||
if FHashTableSize>0 then
|
||||
for i:=0 to FHashTableSize-1 do
|
||||
if Assigned(Chain(i)) then
|
||||
if chain(i).Count>0 then
|
||||
for j:=0 to Chain(i).Count-1 do
|
||||
for i:=0 to HashTableSize-1 do
|
||||
if Assigned(Chain(i)) then
|
||||
if chain(i).Count>0 then
|
||||
for j:=0 to Chain(i).Count-1 do
|
||||
begin
|
||||
aMethod(THTGNode(Chain(i)[j]).Data, THTGNode(Chain(i)[j]).Key, continue);
|
||||
if not continue then
|
||||
begin
|
||||
aMethod(THTGNode(Chain(i)[j]).Data, THTGNode(Chain(i)[j]).Key, continue);
|
||||
if not continue then
|
||||
begin
|
||||
Result:=THTGNode(Chain(i)[j]);
|
||||
Exit;
|
||||
end;
|
||||
Result:=THTGNode(Chain(i)[j]);
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TLazFPGHashTable.Iterate(aMethod: TGIteratorMethod): T;
|
||||
|
Loading…
Reference in New Issue
Block a user