summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-20 19:19:53 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-20 19:19:53 +0200
commit180d70312335d7274eff605e3ec4c1af5879daa4 (patch)
treec87d3c736a6e916985d89f106ff4a0c1898698e2 /dgedit/samplesorter.cc
parent83cb289fdce76dfe0b5c1913fb68d1649367daa8 (diff)
Add libao dependency check. Fix redeclaration compile error.
Diffstat (limited to 'dgedit/samplesorter.cc')
-rw-r--r--dgedit/samplesorter.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dgedit/samplesorter.cc b/dgedit/samplesorter.cc
index 0338bd7..5958354 100644
--- a/dgedit/samplesorter.cc
+++ b/dgedit/samplesorter.cc
@@ -112,13 +112,13 @@ Levels SampleSorter::levels()
if(i == threshold.size() - 1) next = 1.0;
else next = threshold[i+1];
- QMap<float, Selection>::iterator i = sorted.begin();
- while(i != sorted.end()) {
- float val = (i.key()/max);
+ QMap<float, Selection>::iterator si = sorted.begin();
+ while(si != sorted.end()) {
+ float val = (si.key()/max);
if(val >= lvl.velocity && val <= next) {
- lvl.selections[i.key()] = i.value();
+ lvl.selections[si.key()] = si.value();
}
- i++;
+ si++;
}
lvls.push_back(lvl);