Coding style.
authorCarl Hetherington <carl@carlh.net>
Sun, 7 Feb 2010 02:48:07 +0000 (02:48 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 7 Feb 2010 02:48:07 +0000 (02:48 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6642 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/src/Control.cpp

index 6824dc7f5a9fcca13accb787aee0d245296ee5a8..56277678baeae16012798c32c89cf911e3ebc717 100644 (file)
@@ -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);
+       }
 }