CppEditor: Fix uninitialized value warnings

...from coverity scan.

Change-Id: I1b1fb919e77f1407fe2e4319392c28413a296493
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-06-01 13:32:23 +02:00
parent a3a62e78f7
commit 39dea09794
9 changed files with 40 additions and 60 deletions

View File

@@ -197,12 +197,12 @@ public:
Qt::ItemFlags flags() const;
Qt::CheckState checkState() const { return checked ? Qt::Checked : Qt::Unchecked; }
const Function *function;
InsertionPointLocator::AccessSpec accessSpec;
bool reimplemented;
bool alreadyFound;
bool checked;
FunctionItem *nextOverride;
const Function *function = nullptr;
InsertionPointLocator::AccessSpec accessSpec = InsertionPointLocator::Invalid;
bool reimplemented = false;
bool alreadyFound = false;
bool checked = false;
FunctionItem *nextOverride = nullptr;
private:
QString name;
@@ -256,9 +256,6 @@ void ClassItem::removeFunction(int row)
FunctionItem::FunctionItem(const Function *func, const QString &functionName, ClassItem *parent) :
InsertVirtualMethodsItem(parent),
function(func),
reimplemented(false),
alreadyFound(false),
checked(false),
nextOverride(this)
{
name = functionName;