Commit 6a16a5ba authored by Tobias Hunger's avatar Tobias Hunger

CppTools: Initialize members

Change-Id: Id57982ad7fcd6756a95213e16aa59b41a2a329e1
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent e611ba52
......@@ -419,8 +419,9 @@ protected:
class FindFunctionDefinition : protected ASTVisitor
{
FunctionDefinitionAST *_result;
unsigned _line, _column;
FunctionDefinitionAST *_result = nullptr;
unsigned _line = 0;
unsigned _column = 0;
public:
FindFunctionDefinition(TranslationUnit *translationUnit)
: ASTVisitor(translationUnit)
......@@ -429,7 +430,7 @@ public:
FunctionDefinitionAST *operator()(unsigned line, unsigned column)
{
_result = 0;
_result = nullptr;
_line = line;
_column = column;
accept(translationUnit()->ast());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment