diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-14 11:16:42 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-14 11:42:41 -0400 |
commit | 92f1eb6be9df2ad0194872ea40c776b6c1983d08 (patch) | |
tree | d792d2f8f979277b52bfa60c8206a51823a83046 /libs/ardour/phase_control.cc | |
parent | a4ad0a90d124f1e1b6d84fdf221d948ea3733f79 (diff) |
Revert "change return type of AutomationControl::actually_set_value() from void to bool, to indicate if value was changed."
This reverts commit c104c9d4726f3ba1ecd352d13b88a57f2f964510.
Diffstat (limited to 'libs/ardour/phase_control.cc')
-rw-r--r-- | libs/ardour/phase_control.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/phase_control.cc b/libs/ardour/phase_control.cc index 96d0d375b6..9757c104b9 100644 --- a/libs/ardour/phase_control.cc +++ b/libs/ardour/phase_control.cc @@ -32,12 +32,12 @@ PhaseControl::PhaseControl (Session& session, std::string const & name) { } -bool +void PhaseControl::actually_set_value (double val, Controllable::GroupControlDisposition gcd) { _phase_invert = boost::dynamic_bitset<> (std::numeric_limits<double>::digits, (unsigned long) val); - return AutomationControl::actually_set_value (val, gcd); + AutomationControl::actually_set_value (val, gcd); } /** @param c Audio channel index. @@ -48,7 +48,7 @@ PhaseControl::set_phase_invert (uint32_t c, bool yn) { if (_phase_invert[c] != yn) { _phase_invert[c] = yn; - (void) AutomationControl::actually_set_value (_phase_invert.to_ulong(), Controllable::NoGroup); + AutomationControl::actually_set_value (_phase_invert.to_ulong(), Controllable::NoGroup); _session.set_dirty (); } } @@ -58,7 +58,7 @@ PhaseControl::set_phase_invert (boost::dynamic_bitset<> p) { if (_phase_invert != p) { _phase_invert = p; - (void) AutomationControl::actually_set_value (_phase_invert.to_ulong(), Controllable::NoGroup); + AutomationControl::actually_set_value (_phase_invert.to_ulong(), Controllable::NoGroup); Changed (true, Controllable::NoGroup); /* EMIT SIGNAL */ _session.set_dirty (); } |