mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Cleanup: Fix inconsistent TransformDialog code style
This commit is contained in:
parent
572df2c3bd
commit
cb2a501c44
1 changed files with 6 additions and 4 deletions
|
|
@ -229,15 +229,17 @@ TransformDialog::ValueChooser::source_changed()
|
|||
}
|
||||
|
||||
double
|
||||
TransformDialog::ValueChooser::get_value () const
|
||||
TransformDialog::ValueChooser::get_value() const
|
||||
{
|
||||
return value_spinner.get_value() + ((target_property == MidiModel::NoteDiffCommand::Channel) ? -1. : 0.);
|
||||
const bool is_channel = target_property == MidiModel::NoteDiffCommand::Channel;
|
||||
return value_spinner.get_value() + (is_channel ? -1.0 : 0.0);
|
||||
}
|
||||
|
||||
double
|
||||
TransformDialog::ValueChooser::get_max () const
|
||||
TransformDialog::ValueChooser::get_max() const
|
||||
{
|
||||
return max_spinner.get_value() + ((target_property == MidiModel::NoteDiffCommand::Channel) ? -1. : 0.);
|
||||
const bool is_channel = target_property == MidiModel::NoteDiffCommand::Channel;
|
||||
return max_spinner.get_value() + (is_channel ? -1.0 : 0.0);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue