Mercurial > hg > svcore
comparison data/model/RegionModel.h @ 740:e22b6e89a7f7
Fix conversions from false to pointer type
author | Chris Cannam |
---|---|
date | Fri, 22 Jun 2012 09:25:32 +0100 |
parents | 3a5ee4b6c9ad |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
739:51d3b8e816b8 | 740:e22b6e89a7f7 |
---|---|
179 if (column < 4) { | 179 if (column < 4) { |
180 return IntervalModel<RegionRec>::getSetDataCommand | 180 return IntervalModel<RegionRec>::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 |