diff 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
line wrap: on
line diff
--- a/data/model/SparseModel.h	Fri May 25 14:58:21 2012 +0100
+++ b/data/model/SparseModel.h	Fri Jun 22 09:25:32 2012 +0100
@@ -322,9 +322,9 @@
     virtual Command *getSetDataCommand(int row, int column,
                                        const QVariant &value, int role)
     {
-        if (role != Qt::EditRole) return false;
+        if (role != Qt::EditRole) return 0;
         PointListIterator i = getPointListIteratorForRow(row);
-        if (i == m_points.end()) return false;
+        if (i == m_points.end()) return 0;
         EditCommand *command = new EditCommand(this, tr("Edit Data"));
 
         Point point(*i);