comparison widgets/LayerTree.cpp @ 1408:c8a6fd3f9dff fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:54 +0000
parents a34a2a25907c
children 0769eaacc6bf
comparison
equal deleted inserted replaced
1407:05d614f6e46d 1408:c8a6fd3f9dff
236 QModelIndex 236 QModelIndex
237 ModelMetadataModel::index(int row, int column, const QModelIndex &parent) const 237 ModelMetadataModel::index(int row, int column, const QModelIndex &parent) const
238 { 238 {
239 if (!parent.isValid()) { 239 if (!parent.isValid()) {
240 if (row >= (int)m_models.size()) return QModelIndex(); 240 if (row >= (int)m_models.size()) return QModelIndex();
241 return createIndex(row, column, (void *)0); 241 return createIndex(row, column, (void *)nullptr);
242 } 242 }
243 243
244 return QModelIndex(); 244 return QModelIndex();
245 } 245 }
246 246