Mercurial > hg > svcore
comparison data/model/SparseModel.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 | eea8049df526 |
comparison
equal
deleted
inserted
replaced
739:51d3b8e816b8 | 740:e22b6e89a7f7 |
---|---|
320 } | 320 } |
321 | 321 |
322 virtual Command *getSetDataCommand(int row, int column, | 322 virtual Command *getSetDataCommand(int row, int column, |
323 const QVariant &value, int role) | 323 const QVariant &value, int role) |
324 { | 324 { |
325 if (role != Qt::EditRole) return false; | 325 if (role != Qt::EditRole) return 0; |
326 PointListIterator i = getPointListIteratorForRow(row); | 326 PointListIterator i = getPointListIteratorForRow(row); |
327 if (i == m_points.end()) return false; | 327 if (i == m_points.end()) return 0; |
328 EditCommand *command = new EditCommand(this, tr("Edit Data")); | 328 EditCommand *command = new EditCommand(this, tr("Edit Data")); |
329 | 329 |
330 Point point(*i); | 330 Point point(*i); |
331 command->deletePoint(point); | 331 command->deletePoint(point); |
332 | 332 |