diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-12 17:26:46 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-12 17:26:46 -0400 |
commit | c104c9d4726f3ba1ecd352d13b88a57f2f964510 (patch) | |
tree | 61c1214d49f6efded889213e612d49fed5612927 /libs/ardour/ardour/automation_control.h | |
parent | 27cff39dc7c8692e309ac0f9c515a583b775fd7d (diff) |
change return type of AutomationControl::actually_set_value() from void to bool, to indicate if value was changed.
Don't call Session::set_dirty() when no change occurs
Diffstat (limited to 'libs/ardour/ardour/automation_control.h')
-rw-r--r-- | libs/ardour/ardour/automation_control.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h index 158996133c..fddb0685ab 100644 --- a/libs/ardour/ardour/automation_control.h +++ b/libs/ardour/ardour/automation_control.h @@ -105,7 +105,7 @@ class LIBARDOUR_API AutomationControl * this is only used by automation playback. */ void set_value_unchecked (double val) { - actually_set_value (val, PBD::Controllable::NoGroup); + (void) actually_set_value (val, PBD::Controllable::NoGroup); } double lower() const { return _desc.lower; } @@ -134,7 +134,7 @@ class LIBARDOUR_API AutomationControl Controllable::Changed signal is emitted when necessary. */ - virtual void actually_set_value (double value, PBD::Controllable::GroupControlDisposition); + virtual bool actually_set_value (double value, PBD::Controllable::GroupControlDisposition); /* Session needs to call this method before it queues up the real change for execution in a realtime context. C++ access control sucks. |