aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/sourcefileshandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/sourcefileshandler.cpp')
-rw-r--r--src/plugins/debugger/sourcefileshandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/sourcefileshandler.cpp b/src/plugins/debugger/sourcefileshandler.cpp
index ba39fbd1b12..c7761c7b290 100644
--- a/src/plugins/debugger/sourcefileshandler.cpp
+++ b/src/plugins/debugger/sourcefileshandler.cpp
@@ -46,7 +46,7 @@ SourceFilesHandler::SourceFilesHandler(DebuggerEngine *engine)
: m_engine(engine)
{
setObjectName("SourceFilesModel");
- QSortFilterProxyModel *proxy = new QSortFilterProxyModel(this);
+ auto proxy = new QSortFilterProxyModel(this);
proxy->setObjectName("SourceFilesProxyModel");
proxy->setSourceModel(this);
m_proxyModel = proxy;
@@ -78,9 +78,9 @@ QVariant SourceFilesHandler::headerData(int section,
Qt::ItemFlags SourceFilesHandler::flags(const QModelIndex &index) const
{
if (index.row() >= m_fullNames.size())
- return 0;
+ return nullptr;
QFileInfo fi(m_fullNames.at(index.row()));
- return fi.isReadable() ? QAbstractItemModel::flags(index) : Qt::ItemFlags(0);
+ return fi.isReadable() ? QAbstractItemModel::flags(index) : Qt::ItemFlags({});
}
QVariant SourceFilesHandler::data(const QModelIndex &index, int role) const