2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

yuzu/configuration/configure_audio: Tidy up function cast

We can just use qOverload here to tidy up the function cast.
This commit is contained in:
Lioncash 2019-05-19 11:10:55 -04:00
parent d184224e8f
commit d00ca5c6c8

View file

@ -25,8 +25,7 @@ ConfigureAudio::ConfigureAudio(QWidget* parent)
&ConfigureAudio::setVolumeIndicatorText);
this->setConfiguration();
connect(ui->output_sink_combo_box,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
connect(ui->output_sink_combo_box, qOverload<int>(&QComboBox::currentIndexChanged), this,
&ConfigureAudio::updateAudioDevices);
ui->output_sink_combo_box->setEnabled(!Core::System::GetInstance().IsPoweredOn());