forked from qt-creator/qt-creator
CppEditor: Fix uninitialized value warnings
...from coverity scan. Change-Id: I1b1fb919e77f1407fe2e4319392c28413a296493 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user