mirror of https://github.com/stella-emu/stella.git
Fix warning in VS; make comparison use constexpr.
This commit is contained in:
parent
51b27340fd
commit
4a2a07d5a7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue