diff options
| author | hjk <hjk@qt.io> | 2020-01-21 13:53:15 +0100 |
|---|---|---|
| committer | hjk <hjk@qt.io> | 2020-01-21 13:28:26 +0000 |
| commit | 811f4a38daea02f98c4aa2e680790b5000c65366 (patch) | |
| tree | 1fcea28f4d1d9fc1eb77041142597b11402ef1b9 /src/plugins/debugger/sourcefileshandler.cpp | |
| parent | c9a4176b2fd6b4293c9bde0d6b8ed411c60fc6c8 (diff) | |
| download | qt-creator-811f4a38daea02f98c4aa2e680790b5000c65366.tar.gz | |
Use less nullptr for empty flags
Change-Id: Ic4eafdc8f204a432a752a97593380609a408a7de
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/debugger/sourcefileshandler.cpp')
| -rw-r--r-- | src/plugins/debugger/sourcefileshandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/sourcefileshandler.cpp b/src/plugins/debugger/sourcefileshandler.cpp index bd3ddb4d78..c384b8b9e1 100644 --- a/src/plugins/debugger/sourcefileshandler.cpp +++ b/src/plugins/debugger/sourcefileshandler.cpp @@ -78,7 +78,7 @@ QVariant SourceFilesHandler::headerData(int section, Qt::ItemFlags SourceFilesHandler::flags(const QModelIndex &index) const { if (index.row() >= m_fullNames.size()) - return nullptr; + return {}; QFileInfo fi(m_fullNames.at(index.row())); return fi.isReadable() ? QAbstractItemModel::flags(index) : Qt::ItemFlags({}); } |
