Mercurial > hg > svcore
comparison data/model/SparseTimeValueModel.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 | fe4772d11386 |
comparison
equal
deleted
inserted
replaced
739:51d3b8e816b8 | 740:e22b6e89a7f7 |
---|---|
145 if (column < 2) { | 145 if (column < 2) { |
146 return SparseValueModel<TimeValuePoint>::getSetDataCommand | 146 return SparseValueModel<TimeValuePoint>::getSetDataCommand |
147 (row, column, value, role); | 147 (row, column, value, role); |
148 } | 148 } |
149 | 149 |
150 if (role != Qt::EditRole) return false; | 150 if (role != Qt::EditRole) return 0; |
151 PointListConstIterator i = getPointListIteratorForRow(row); | 151 PointListConstIterator i = getPointListIteratorForRow(row); |
152 if (i == m_points.end()) return false; | 152 if (i == m_points.end()) return 0; |
153 EditCommand *command = new EditCommand(this, tr("Edit Data")); | 153 EditCommand *command = new EditCommand(this, tr("Edit Data")); |
154 | 154 |
155 Point point(*i); | 155 Point point(*i); |
156 command->deletePoint(point); | 156 command->deletePoint(point); |
157 | 157 |