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