Initialize member field.

Showed up in valgrind as being used uninitialized.

Change-Id: I77618ff982c12ff7b1d7f5e285cb9dd1810c116c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Erik Verbruggen
2013-07-10 11:55:03 +02:00
committed by Tobias Hunger
parent 46deab8377
commit 3c441c6449

View File

@@ -341,7 +341,7 @@ void TaskModel::setFileNotFound(const QModelIndex &idx, bool b)
///// /////
TaskFilterModel::TaskFilterModel(TaskModel *sourceModel, QObject *parent) : QAbstractItemModel(parent), TaskFilterModel::TaskFilterModel(TaskModel *sourceModel, QObject *parent) : QAbstractItemModel(parent),
m_sourceModel(sourceModel) m_sourceModel(sourceModel), m_mappingUpToDate(false)
{ {
Q_ASSERT(m_sourceModel); Q_ASSERT(m_sourceModel);
connect(m_sourceModel, SIGNAL(rowsInserted(QModelIndex,int,int)), connect(m_sourceModel, SIGNAL(rowsInserted(QModelIndex,int,int)),