aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixes.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2017-06-01 13:32:23 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2017-06-01 13:33:21 +0000
commit39dea0979463fa834d99b76c6d286c0cb045f4d3 (patch)
tree922b7138accebdd5df533f61c730cfb0aa0adea3 /src/plugins/cppeditor/cppquickfixes.cpp
parenta3a62e78f7378182138555936b45a885865c00ad (diff)
CppEditor: Fix uninitialized value warnings
...from coverity scan. Change-Id: I1b1fb919e77f1407fe2e4319392c28413a296493 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixes.cpp')
-rw-r--r--src/plugins/cppeditor/cppquickfixes.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp
index 07373ace5fb..f4e0b726917 100644
--- a/src/plugins/cppeditor/cppquickfixes.cpp
+++ b/src/plugins/cppeditor/cppquickfixes.cpp
@@ -824,9 +824,9 @@ public:
ASTMatcher matcher;
ASTPatternBuilder mk;
- ConditionAST *condition;
- IfStatementAST *pattern;
- CoreDeclaratorAST *core;
+ ConditionAST *condition = nullptr;
+ IfStatementAST *pattern = nullptr;
+ CoreDeclaratorAST *core = nullptr;
};
} // anonymous namespace
@@ -901,9 +901,9 @@ public:
ASTMatcher matcher;
ASTPatternBuilder mk;
- ConditionAST *condition;
- WhileStatementAST *pattern;
- CoreDeclaratorAST *core;
+ ConditionAST *condition = nullptr;
+ WhileStatementAST *pattern = nullptr;
+ CoreDeclaratorAST *core = nullptr;
};
} // anonymous namespace
@@ -2235,7 +2235,7 @@ public:
}
Overview prettyPrint;
- bool foundCaseStatementLevel;
+ bool foundCaseStatementLevel = false;
QStringList values;
TypeOfExpression typeOfExpression;
Document::Ptr document;