From 92f1eb6be9df2ad0194872ea40c776b6c1983d08 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 14 Oct 2016 11:16:42 -0400 Subject: Revert "change return type of AutomationControl::actually_set_value() from void to bool, to indicate if value was changed." This reverts commit c104c9d4726f3ba1ecd352d13b88a57f2f964510. --- libs/ardour/solo_safe_control.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libs/ardour/solo_safe_control.cc') diff --git a/libs/ardour/solo_safe_control.cc b/libs/ardour/solo_safe_control.cc index 7e8de603a7..01d56ddf58 100644 --- a/libs/ardour/solo_safe_control.cc +++ b/libs/ardour/solo_safe_control.cc @@ -36,7 +36,7 @@ SoloSafeControl::SoloSafeControl (Session& session, std::string const & name) _list->set_interpolation(Evoral::ControlList::Discrete); } -bool +void SoloSafeControl::actually_set_value (double val, PBD::Controllable::GroupControlDisposition gcd) { _solo_safe = (val ? true : false); @@ -45,12 +45,8 @@ SoloSafeControl::actually_set_value (double val, PBD::Controllable::GroupControl be retrieved by AutomationControl::get_value (), and emits Changed */ - if (AutomationControl::actually_set_value (val, gcd)) { - _session.set_dirty (); - return true; - } - - return false; + AutomationControl::actually_set_value (val, gcd); + _session.set_dirty (); } double -- cgit v1.2.3