diff options
author | Carl Hetherington <carl@carlh.net> | 2010-02-07 02:48:07 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-02-07 02:48:07 +0000 |
commit | 797cd64d124e14446fcd2b90807c5d2b5af0e20b (patch) | |
tree | 88fb38f7964e1cb25a34c95c3888b7d7e45d64a4 /libs | |
parent | 0e1c62150a385d7c4259b7e2cd2885392badeed3 (diff) |
Coding style.
git-svn-id: svn://localhost/ardour2/branches/3.0@6642 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/evoral/src/Control.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/evoral/src/Control.cpp b/libs/evoral/src/Control.cpp index 6824dc7f5a..56277678ba 100644 --- a/libs/evoral/src/Control.cpp +++ b/libs/evoral/src/Control.cpp @@ -37,10 +37,11 @@ Control::Control(const Parameter& parameter, boost::shared_ptr<ControlList> list float Control::get_float(bool from_list, FrameTime frame) const { - if (from_list) + if (from_list) { return _list->eval(frame); - else + } else { return _user_value; + } } @@ -49,8 +50,9 @@ Control::set_float(float value, bool to_list, FrameTime frame) { _user_value = value; - if (to_list) + if (to_list) { _list->add(frame, value); + } } |