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
|
if Ptr^ = Key then
|
||||||
begin
|
begin
|
||||||
Result := I;
|
Result := I;
|
||||||
I := Self.FCount { force loop exit }
|
break
|
||||||
end
|
end;
|
||||||
else
|
I := I + 1
|
||||||
I := I + 1
|
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,10 +118,9 @@ begin
|
||||||
if Ptr^ = Key then
|
if Ptr^ = Key then
|
||||||
begin
|
begin
|
||||||
Result := I;
|
Result := I;
|
||||||
I := Self.FCount
|
break
|
||||||
end
|
end;
|
||||||
else
|
I := I + 1
|
||||||
I := I + 1
|
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue