NO-OP, use default argument

This commit is contained in:
Robin Gareus 2022-06-29 00:15:15 +02:00
parent fadf77e39c
commit b0b7750bc7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 3 deletions

View File

@ -373,7 +373,7 @@ MidiTrack::update_controls (BufferSet const& bufs)
const Evoral::Parameter param = midi_parameter(ev.buffer(), ev.size());
const boost::shared_ptr<AutomationControl> control = automation_control (param);
if (control) {
double old = control->get_double (false, timepos_t::zero (true));
double old = control->get_double ();
control->set_double (ev.value(), timepos_t::zero (false), false);
if (old != ev.value()) {
control->Changed (false, Controllable::NoGroup);

View File

@ -86,7 +86,7 @@ SlavableAutomationControl::get_value_locked() const
/* read or write masters lock must be held */
if (_masters.empty()) {
return Control::get_double (false, timepos_t (_session.transport_sample()));
return Control::get_double ();
}
if (_desc.toggled) {
@ -94,7 +94,7 @@ SlavableAutomationControl::get_value_locked() const
* enabled, this slave is enabled. So check our own value
* first, because if we are enabled, we can return immediately.
*/
if (Control::get_double (false, timepos_t (_session.transport_sample()))) {
if (Control::get_double ()) {
return _desc.upper;
}
}