mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 07:19:26 +02:00
* quick fix for uninitialized "CodeEl" usage that trips up small test programs
git-svn-id: trunk@39051 -
This commit is contained in:
parent
2411cb3f24
commit
f401410500
@ -3169,6 +3169,7 @@ var
|
||||
|
||||
begin
|
||||
isRecord:=AParent is TPasRecordType;
|
||||
CodeEl:=nil;
|
||||
if Members.Count > 0 then
|
||||
begin
|
||||
wt:=False;
|
||||
@ -3290,12 +3291,15 @@ begin
|
||||
end;
|
||||
CodeEl := CreateCode(CreatePara(CreateTD(CreateTR(TableEl))));
|
||||
end;
|
||||
AppendText(CodeEl, ' '); // !!!: Dirty trick, necessary for current XML writer
|
||||
If AddEnd then
|
||||
begin
|
||||
AppendKw(CodeEl, 'end');
|
||||
AppendSym(CodeEl, ';');
|
||||
end;
|
||||
if assigned(CodeEl) Then
|
||||
begin
|
||||
AppendText(CodeEl, ' '); // !!!: Dirty trick, necessary for current XML writer
|
||||
If AddEnd then
|
||||
begin
|
||||
AppendKw(CodeEl, 'end');
|
||||
AppendSym(CodeEl, ';');
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure THTMLWriter.CreateClassPageBody(AClass: TPasClassType;
|
||||
|
Loading…
Reference in New Issue
Block a user