mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 00:11:51 +02:00
codetools: fixed uninitialized result
git-svn-id: trunk@16727 -
This commit is contained in:
parent
e9c936715b
commit
9d6674f3bb
@ -7227,7 +7227,7 @@ function TFindDeclarationTool.CheckParameterSyntax(CursorNode: TCodeTreeNode;
|
||||
if CheckIdentifierAndParameterList() then exit(true);
|
||||
end else begin
|
||||
{$IFDEF VerboseCPS}DebugLn('CheckBrackets check bracket open');{$ENDIF}
|
||||
if CheckBrackets then exit(true);
|
||||
if CheckBrackets() then exit(true);
|
||||
end;
|
||||
end else if CurPos.Flag in [cafRoundBracketClose,cafEdgedBracketClose]
|
||||
then begin
|
||||
@ -7336,6 +7336,9 @@ function TFindDeclarationTool.CheckParameterSyntax(CursorNode: TCodeTreeNode;
|
||||
begin
|
||||
{$IFDEF CheckNodeTool}CheckNodeTool(CursorNode);{$ENDIF}
|
||||
Result:=false;
|
||||
ParameterAtom:=CleanAtomPosition;
|
||||
ProcNameAtom:=CleanAtomPosition;
|
||||
ParameterIndex:=0;
|
||||
//DebugLn('TFindDeclarationTool.CheckParameterSyntax START');
|
||||
|
||||
// read code in front to find ProcName and check the syntax
|
||||
|
Loading…
Reference in New Issue
Block a user