Mercurial > hg > svcore
comparison data/model/SparseOneDimensionalModel.h @ 740:e22b6e89a7f7
Fix conversions from false to pointer type
author | Chris Cannam |
---|---|
date | Fri, 22 Jun 2012 09:25:32 +0100 |
parents | 1415e35881f6 |
children | d6bd5751b8f6 |
comparison
equal
deleted
inserted
replaced
739:51d3b8e816b8 | 740:e22b6e89a7f7 |
---|---|
152 if (column < 2) { | 152 if (column < 2) { |
153 return SparseModel<OneDimensionalPoint>::getSetDataCommand | 153 return SparseModel<OneDimensionalPoint>::getSetDataCommand |
154 (row, column, value, role); | 154 (row, column, value, role); |
155 } | 155 } |
156 | 156 |
157 if (role != Qt::EditRole) return false; | 157 if (role != Qt::EditRole) return 0; |
158 PointListConstIterator i = getPointListIteratorForRow(row); | 158 PointListConstIterator i = getPointListIteratorForRow(row); |
159 if (i == m_points.end()) return false; | 159 if (i == m_points.end()) return 0; |
160 EditCommand *command = new EditCommand(this, tr("Edit Data")); | 160 EditCommand *command = new EditCommand(this, tr("Edit Data")); |
161 | 161 |
162 Point point(*i); | 162 Point point(*i); |
163 command->deletePoint(point); | 163 command->deletePoint(point); |
164 | 164 |