diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-13 16:16:01 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-13 16:16:01 -0500 |
commit | 15276f365c15527fbb10d42e3f5896f540de7413 (patch) | |
tree | 89a1d051808838739d2b256354886b4513531a32 /src/document | |
parent | 4a9d4beee6be253aff4f6d3c8fca4225b14e66cb (diff) | |
download | rosegarden-15276f365c15527fbb10d42e3f5896f540de7413.tar.gz rosegarden-15276f365c15527fbb10d42e3f5896f540de7413.zip |
Updated to build with gcc 4.7.
Diffstat (limited to 'src/document')
-rw-r--r-- | src/document/RosegardenGUIDoc.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/document/RosegardenGUIDoc.cpp b/src/document/RosegardenGUIDoc.cpp index 3ec8e94..fab09c3 100644 --- a/src/document/RosegardenGUIDoc.cpp +++ b/src/document/RosegardenGUIDoc.cpp @@ -2106,15 +2106,15 @@ RosegardenGUIDoc::stopRecordingMidi() bool meaningless = true; - for (Segment::iterator i = s->begin(); i != s->end(); ++i) { + for (Segment::iterator j = s->begin(); j != s->end(); ++j) { - if ((*i)->isa(Clef::EventType)) continue; + if ((*j)->isa(Clef::EventType)) continue; // no rests in the segment yet, so anything else is meaningful meaningless = false; - if (!haveMeaning || (*i)->getAbsoluteTime() < earliestMeaning) { - earliestMeaning = (*i)->getAbsoluteTime(); + if (!haveMeaning || (*j)->getAbsoluteTime() < earliestMeaning) { + earliestMeaning = (*j)->getAbsoluteTime(); } haveMeaning = true; @@ -2149,13 +2149,13 @@ RosegardenGUIDoc::stopRecordingMidi() ++i) { Segment *s = i->second; - Segment::iterator i = s->begin(); + Segment::iterator j = s->begin(); - if (i == s->end() || !(*i)->isa(Clef::EventType)) continue; + if (j == s->end() || !(*j)->isa(Clef::EventType)) continue; - if ((*i)->getAbsoluteTime() < meaningfulBarStart) { - Event *e = new Event(**i, meaningfulBarStart); - s->erase(i); + if ((*j)->getAbsoluteTime() < meaningfulBarStart) { + Event *e = new Event(**j, meaningfulBarStart); + s->erase(j); s->insert(e); } } |