diff 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
line wrap: on
line diff
--- a/data/model/IntervalModel.h	Fri May 25 14:58:21 2012 +0100
+++ b/data/model/IntervalModel.h	Fri Jun 22 09:25:32 2012 +0100
@@ -95,10 +95,10 @@
                 (row, column, value, role);
         }
 
-        if (role != Qt::EditRole) return false;
+        if (role != Qt::EditRole) return 0;
         typename I::PointList::const_iterator i
             = I::getPointListIteratorForRow(row);
-        if (i == I::m_points.end()) return false;
+        if (i == I::m_points.end()) return 0;
         typename I::EditCommand *command = new typename I::EditCommand
             (this, I::tr("Edit Data"));