diff data/model/SparseModel.h @ 606:1415e35881f6

* Some (incomplete) Solaris build bobs
author Chris Cannam
date Thu, 10 Sep 2009 14:17:59 +0000
parents 6441b31b37ac
children d7f3dfe6f9a4
line wrap: on
line diff
--- a/data/model/SparseModel.h	Tue Sep 08 16:53:32 2009 +0000
+++ b/data/model/SparseModel.h	Thu Sep 10 14:17:59 2009 +0000
@@ -67,6 +67,7 @@
     typedef std::multiset<PointType,
 			  typename PointType::OrderComparator> PointList;
     typedef typename PointList::iterator PointListIterator;
+    typedef typename PointList::const_iterator PointListConstIterator;
 
     /**
      * Return whether the model is empty or not.
@@ -149,7 +150,7 @@
     virtual QString toDelimitedDataString(QString delimiter) const
     { 
         QString s;
-        for (PointListIterator i = m_points.begin(); i != m_points.end(); ++i) {
+        for (PointListConstIterator i = m_points.begin(); i != m_points.end(); ++i) {
             s += i->toDelimitedDataString(delimiter, m_sampleRate) + "\n";
         }
         return s;
@@ -276,7 +277,7 @@
 
     virtual long getFrameForRow(int row) const
     {
-        PointListIterator i = getPointListIteratorForRow(row);
+        PointListConstIterator i = getPointListIteratorForRow(row);
         if (i == m_points.end()) return 0;
         return i->frame;
     }
@@ -296,7 +297,7 @@
     virtual int getColumnCount() const { return 1; }
     virtual QVariant getData(int row, int column, int role) const
     {
-        PointListIterator i = getPointListIteratorForRow(row);
+        PointListConstIterator i = getPointListIteratorForRow(row);
         if (i == m_points.end()) return QVariant();
 
         switch (column) {