diff data/model/IntervalModel.h @ 608:d7f3dfe6f9a4

* solaris build fixes
author Chris Cannam
date Thu, 10 Sep 2009 18:44:45 +0000
parents 6441b31b37ac
children b1dc68507e46
line wrap: on
line diff
--- a/data/model/IntervalModel.h	Thu Sep 10 14:31:49 2009 +0000
+++ b/data/model/IntervalModel.h	Thu Sep 10 18:44:45 2009 +0000
@@ -134,14 +134,14 @@
 
     PointType endPoint(end);
     
-    typename I::PointListIterator endItr = I::m_points.upper_bound(endPoint);
+    typename I::PointListConstIterator endItr = I::m_points.upper_bound(endPoint);
 
     if (endItr != I::m_points.end()) ++endItr;
     if (endItr != I::m_points.end()) ++endItr;
 
     typename I::PointList rv;
 
-    for (typename I::PointListIterator i = endItr; i != I::m_points.begin(); ) {
+    for (typename I::PointListConstIterator i = endItr; i != I::m_points.begin(); ) {
         --i;
         if (i->frame < start) {
             if (i->frame + long(i->duration) >= start) {
@@ -171,11 +171,11 @@
 
     PointType endPoint(end);
     
-    typename I::PointListIterator endItr = I::m_points.upper_bound(endPoint);
+    typename I::PointListConstIterator endItr = I::m_points.upper_bound(endPoint);
 
     typename I::PointList rv;
 
-    for (typename I::PointListIterator i = endItr; i != I::m_points.begin(); ) {
+    for (typename I::PointListConstIterator i = endItr; i != I::m_points.begin(); ) {
         --i;
         if (i->frame < start) {
             if (i->frame + long(i->duration) >= start) {