summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2017-05-20 09:09:01 -0700
committerLen Ovens <len@ovenwerks.net>2017-05-20 09:09:01 -0700
commitab069b13729bef775544fb3f2d71ba9bd4b1a910 (patch)
tree64efd8fb7635184cd690fb880a174cceabfb9564 /libs
parent9fc65b274e5e9c2ef46af87a9685de2d409b0d69 (diff)
OSC: fix c++98 mistake
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index d23fe21ad1..05eeab5b0c 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -2343,11 +2343,10 @@ OSC::touch_detect (const char *path, lo_arg **argv, int argc, lo_message msg)
control->stop_touch (true, control->session().transport_frame());
}
// just in case some crazy surface starts sending control values before touch
- for (FakeTouchMap::iterator x = _touch_timeout.begin(); x != _touch_timeout.end();) {
+ for (FakeTouchMap::iterator x = _touch_timeout.begin(); x != _touch_timeout.end(); x++) {
if ((*x).first == control) {
- x = _touch_timeout.erase (x);
- } else {
- ++x;
+ _touch_timeout.erase (x);
+ break;
}
}
}
@@ -3976,15 +3975,14 @@ OSC::periodic (void)
co->tick();
}
}
- for (FakeTouchMap::iterator x = _touch_timeout.begin(); x != _touch_timeout.end();) {
+ for (FakeTouchMap::iterator x = _touch_timeout.begin(); x != _touch_timeout.end(); x++) {
_touch_timeout[(*x).first] = (*x).second - 1;
if (!(*x).second) {
boost::shared_ptr<ARDOUR::AutomationControl> ctrl = (*x).first;
// turn touch off
ctrl->stop_touch (true, ctrl->session().transport_frame());
- x = _touch_timeout.erase (x);
- } else {
- ++x;
+ _touch_timeout.erase (x);
+ break;
}
}
return true;