Coding style.

git-svn-id: svn://localhost/ardour2/branches/3.0@6642 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-02-07 02:48:07 +00:00
parent 0e1c62150a
commit 797cd64d12

View 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);
}
}