diff data/model/ModelDataTableModel.cpp @ 417:12b7bf0c3915

* Compile fixes
author Chris Cannam
date Tue, 10 Jun 2008 09:11:42 +0000
parents a00902d5f0ab
children 64e7bbb255d3
line wrap: on
line diff
--- a/data/model/ModelDataTableModel.cpp	Mon Jun 09 16:01:50 2008 +0000
+++ b/data/model/ModelDataTableModel.cpp	Tue Jun 10 09:11:42 2008 +0000
@@ -19,6 +19,8 @@
 #include "SparseOneDimensionalModel.h"
 #include "SparseModel.h"
 
+#include <algorithm>
+
 ModelDataTableModel::ModelDataTableModel(Model *m) :
     m_model(m)
 {
@@ -99,7 +101,7 @@
 
         case 1:
             std::cerr << "Returning frame " << frame << std::endl;
-            return QVariant(frame); //!!! RealTime
+            return QVariant(int(frame));
 
         case 2:
             if (dynamic_cast<const SparseOneDimensionalModel *>(m_model)) {
@@ -168,7 +170,7 @@
         PointListType;
     typedef typename ModelType::EditCommand EditCommandType;
 
-    ModelType *sm = dynamic_cast<const ModelType *>(m_model);
+    ModelType *sm = dynamic_cast<ModelType *>(m_model);
     const PointListType &points = sm->getPoints(frame);
 
     // it is possible to have more than one point at the same frame