Mercurial > hg > svcore
comparison data/model/ImageModel.h @ 740:e22b6e89a7f7
Fix conversions from false to pointer type
author | Chris Cannam |
---|---|
date | Fri, 22 Jun 2012 09:25:32 +0100 |
parents | d7f3dfe6f9a4 |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
739:51d3b8e816b8 | 740:e22b6e89a7f7 |
---|---|
179 if (column < 2) { | 179 if (column < 2) { |
180 return SparseModel<ImagePoint>::getSetDataCommand | 180 return SparseModel<ImagePoint>::getSetDataCommand |
181 (row, column, value, role); | 181 (row, column, value, role); |
182 } | 182 } |
183 | 183 |
184 if (role != Qt::EditRole) return false; | 184 if (role != Qt::EditRole) return 0; |
185 PointListIterator i = getPointListIteratorForRow(row); | 185 PointListIterator i = getPointListIteratorForRow(row); |
186 if (i == m_points.end()) return false; | 186 if (i == m_points.end()) return 0; |
187 EditCommand *command = new EditCommand(this, tr("Edit Data")); | 187 EditCommand *command = new EditCommand(this, tr("Edit Data")); |
188 | 188 |
189 Point point(*i); | 189 Point point(*i); |
190 command->deletePoint(point); | 190 command->deletePoint(point); |
191 | 191 |