Mercurial > hg > svgui
comparison widgets/LayerTree.cpp @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | c8a6fd3f9dff |
children | 0769eaacc6bf |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
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 |