Fix warning in VS; make comparison use constexpr.

This commit is contained in:
Stephen Anthony 2018-08-19 17:03:09 -02:30
parent 51b27340fd
commit 4a2a07d5a7
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void AudioDialog::setDefaults()
mySoundEnableCheckbox->setState(AudioSettings::DEFAULT_ENABLED);
myModePopup->setSelected(static_cast<int>(AudioSettings::DEFAULT_PRESET));
if (AudioSettings::DEFAULT_PRESET == AudioSettings::Preset::custom) {
if constexpr(AudioSettings::DEFAULT_PRESET == AudioSettings::Preset::custom) {
myFragsizePopup->setSelected(AudioSettings::DEFAULT_FRAGMENT_SIZE);
myFreqPopup->setSelected(AudioSettings::DEFAULT_SAMPLE_RATE);
myHeadroomSlider->setValue(AudioSettings::DEFAULT_HEADROOM);