Replace force-exit workarounds with break now that Break is supported
This commit is contained in:
parent
b38a486a0e
commit
cbb1af5ffc
|
|
@ -141,10 +141,9 @@ begin
|
|||
if Ptr^ = Key then
|
||||
begin
|
||||
Result := I;
|
||||
I := Self.FCount { force loop exit }
|
||||
end
|
||||
else
|
||||
I := I + 1
|
||||
break
|
||||
end;
|
||||
I := I + 1
|
||||
end
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -118,10 +118,9 @@ begin
|
|||
if Ptr^ = Key then
|
||||
begin
|
||||
Result := I;
|
||||
I := Self.FCount
|
||||
end
|
||||
else
|
||||
I := I + 1
|
||||
break
|
||||
end;
|
||||
I := I + 1
|
||||
end
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue