mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-02 20:29:28 +01:00
LCL: TTextStrings: moved raise to sub proc
git-svn-id: trunk@18703 -
This commit is contained in:
parent
4a235bd95f
commit
19cfe695a5
@ -504,9 +504,14 @@ begin
|
||||
end;
|
||||
|
||||
procedure TTextStrings.EndUpdate;
|
||||
begin
|
||||
if FUpdateCount<=0 then
|
||||
|
||||
procedure RaiseUpdateCount;
|
||||
begin
|
||||
raise Exception.Create('TTextStrings.EndUpdate');
|
||||
end;
|
||||
|
||||
begin
|
||||
if FUpdateCount<=0 then RaiseUpdateCount;
|
||||
dec(FUpdateCount);
|
||||
if FUpdateCount=0 then begin
|
||||
if FChangedWhileUpdate then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user