Commit 8dd13f4d authored by Stephen Kelly's avatar Stephen Kelly Committed by Daniel Teske
Browse files

Remove ambiguous literal 0 from createIndex calls.



This is now a build-error. The default value is a null void pointer anyway.

Change-Id: I92d0faf5152ec53c8e84ba4982c151a09aa33146
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 91e9cffd
......@@ -344,7 +344,7 @@ QModelIndex BookmarkManager::index(int row, int column, const QModelIndex &paren
if (parent.isValid())
return QModelIndex();
else
return createIndex(row, column, 0);
return createIndex(row, column);
}
QModelIndex BookmarkManager::parent(const QModelIndex &) const
......
......@@ -78,7 +78,7 @@ bool DeviceProcessList::hasChildren(const QModelIndex &parent) const
QModelIndex DeviceProcessList::index(int row, int column, const QModelIndex &parent) const
{
return hasIndex(row, column, parent) ? createIndex(row, column, 0) : QModelIndex();
return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex();
}
......
......@@ -360,7 +360,7 @@ QModelIndex TaskFilterModel::index(int row, int column, const QModelIndex &paren
{
if (parent.isValid())
return QModelIndex();
return createIndex(row, column, 0);
return createIndex(row, column);
}
QModelIndex TaskFilterModel::parent(const QModelIndex &child) const
......
......@@ -87,7 +87,7 @@ QModelIndex ErrorListModel::index(int row, int column, const QModelIndex &parent
QTC_ASSERT(parent.model() == this, qt_noop());
return QModelIndex();
}
return createIndex(row, column, 0);
return createIndex(row, column);
}
QModelIndex ErrorListModel::parent(const QModelIndex &child) const
......
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