comparison data/model/NoteModel.h @ 740:e22b6e89a7f7

Fix conversions from false to pointer type
author Chris Cannam
date Fri, 22 Jun 2012 09:25:32 +0100
parents 080d8bdd8762
children d6bd5751b8f6
comparison
equal deleted inserted replaced
739:51d3b8e816b8 740:e22b6e89a7f7
194 if (column < 4) { 194 if (column < 4) {
195 return IntervalModel<Note>::getSetDataCommand 195 return IntervalModel<Note>::getSetDataCommand
196 (row, column, value, role); 196 (row, column, value, role);
197 } 197 }
198 198
199 if (role != Qt::EditRole) return false; 199 if (role != Qt::EditRole) return 0;
200 PointListConstIterator i = getPointListIteratorForRow(row); 200 PointListConstIterator i = getPointListIteratorForRow(row);
201 if (i == m_points.end()) return false; 201 if (i == m_points.end()) return 0;
202 EditCommand *command = new EditCommand(this, tr("Edit Data")); 202 EditCommand *command = new EditCommand(this, tr("Edit Data"));
203 203
204 Point point(*i); 204 Point point(*i);
205 command->deletePoint(point); 205 command->deletePoint(point);
206 206