summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/InfoWidget.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-30 09:35:46 -0400
committerLéo Lam <leo@leolam.fr>2020-04-28 16:54:19 +0200
commit19115c84dd50105bb3a64df7e5017946247dcd46 (patch)
treea714dcc359090e8a4235d3993d5c77cffb300657 /Source/Core/DolphinQt/Config/InfoWidget.cpp
parent58de3c59ce543ffac006fa00f74a07b39393af69 (diff)
DolphinQt: Use qOverload where applicable
Provides the same behvaior, but in a much more concise manner.
Diffstat (limited to 'Source/Core/DolphinQt/Config/InfoWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/InfoWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/InfoWidget.cpp b/Source/Core/DolphinQt/Config/InfoWidget.cpp
index c382c7dc1b..9d7c643a14 100644
--- a/Source/Core/DolphinQt/Config/InfoWidget.cpp
+++ b/Source/Core/DolphinQt/Config/InfoWidget.cpp
@@ -175,8 +175,7 @@ void InfoWidget::CreateLanguageSelector()
if (m_language_selector->count() == 1)
m_language_selector->setDisabled(true);
- connect(m_language_selector,
- static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
+ connect(m_language_selector, qOverload<int>(&QComboBox::currentIndexChanged), this,
&InfoWidget::ChangeLanguage);
}