Replace force-exit workarounds with break now that Break is supported

This commit is contained in:
Graeme Geldenhuys 2026-04-22 23:18:47 +01:00
parent b38a486a0e
commit cbb1af5ffc
2 changed files with 6 additions and 8 deletions

View file

@ -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;

View file

@ -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;