Mercurial > hg > svcore
comparison data/model/IntervalModel.h @ 740:e22b6e89a7f7
Fix conversions from false to pointer type
author | Chris Cannam |
---|---|
date | Fri, 22 Jun 2012 09:25:32 +0100 |
parents | b1dc68507e46 |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
739:51d3b8e816b8 | 740:e22b6e89a7f7 |
---|---|
93 if (column < 2) { | 93 if (column < 2) { |
94 return SparseValueModel<PointType>::getSetDataCommand | 94 return SparseValueModel<PointType>::getSetDataCommand |
95 (row, column, value, role); | 95 (row, column, value, role); |
96 } | 96 } |
97 | 97 |
98 if (role != Qt::EditRole) return false; | 98 if (role != Qt::EditRole) return 0; |
99 typename I::PointList::const_iterator i | 99 typename I::PointList::const_iterator i |
100 = I::getPointListIteratorForRow(row); | 100 = I::getPointListIteratorForRow(row); |
101 if (i == I::m_points.end()) return false; | 101 if (i == I::m_points.end()) return 0; |
102 typename I::EditCommand *command = new typename I::EditCommand | 102 typename I::EditCommand *command = new typename I::EditCommand |
103 (this, I::tr("Edit Data")); | 103 (this, I::tr("Edit Data")); |
104 | 104 |
105 PointType point(*i); | 105 PointType point(*i); |
106 command->deletePoint(point); | 106 command->deletePoint(point); |