mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02:00
Use an enum class for numeric validator styles
This commit is contained in:
@@ -671,9 +671,9 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
|
||||
vld.SetRange(mParameters[p].minValue, mParameters[p].maxValue);
|
||||
|
||||
float range = mParameters[p].maxValue - mParameters[p].minValue;
|
||||
int style = range < 10 ? NUM_VAL_THREE_TRAILING_ZEROES :
|
||||
range < 100 ? NUM_VAL_TWO_TRAILING_ZEROES :
|
||||
NUM_VAL_ONE_TRAILING_ZERO;
|
||||
auto style = range < 10 ? NumValidatorStyle::THREE_TRAILING_ZEROES :
|
||||
range < 100 ? NumValidatorStyle::TWO_TRAILING_ZEROES :
|
||||
NumValidatorStyle::ONE_TRAILING_ZERO;
|
||||
vld.SetStyle(style);
|
||||
|
||||
S.Id(ID_Texts + p);
|
||||
|
Reference in New Issue
Block a user