Mercurial > hg > svcore
comparison data/model/NoteModel.cpp @ 259:dc46851837d6
* Fix many compile warnings, remove some debug output
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 13:36:23 +0000 |
parents | 3a13b0d4934e |
children |
comparison
equal
deleted
inserted
replaced
258:96a6dd889c68 | 259:dc46851837d6 |
---|---|
31 PointList rv; | 31 PointList rv; |
32 | 32 |
33 for (PointListIterator i = endItr; i != m_points.begin(); ) { | 33 for (PointListIterator i = endItr; i != m_points.begin(); ) { |
34 --i; | 34 --i; |
35 if (i->frame < start) { | 35 if (i->frame < start) { |
36 if (i->frame + i->duration >= start) { | 36 if (i->frame + long(i->duration) >= start) { |
37 rv.insert(*i); | 37 rv.insert(*i); |
38 } | 38 } |
39 } else if (i->frame <= end) { | 39 } else if (i->frame <= end) { |
40 rv.insert(*i); | 40 rv.insert(*i); |
41 } | 41 } |
61 PointList rv; | 61 PointList rv; |
62 | 62 |
63 for (PointListIterator i = endItr; i != m_points.begin(); ) { | 63 for (PointListIterator i = endItr; i != m_points.begin(); ) { |
64 --i; | 64 --i; |
65 if (i->frame < start) { | 65 if (i->frame < start) { |
66 if (i->frame + i->duration >= start) { | 66 if (i->frame + long(i->duration) >= start) { |
67 rv.insert(*i); | 67 rv.insert(*i); |
68 } | 68 } |
69 } else if (i->frame <= end) { | 69 } else if (i->frame <= end) { |
70 rv.insert(*i); | 70 rv.insert(*i); |
71 } | 71 } |