diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-01-17 22:48:42 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-01-20 17:55:10 -0600 |
| commit | d8cf835f07282654d5770afe44dbb6aa90548ef4 (patch) | |
| tree | 424cbf9e2618d856dd7a7ab4f8d7986dde14446d /Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp | |
| parent | d19304dc1537b8ecba3b766972fa2e12308178e4 (diff) | |
MappingWidget: Fix shadowed variable warning.
Diffstat (limited to 'Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp index 1ac0428ca3..067fbabfc2 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp @@ -173,19 +173,19 @@ QGroupBox* MappingWidget::CreateGroupBox(const QString& name, ControllerEmu::Con form_layout->insertRow(2, mouse_button); using ControllerEmu::Cursor; - connect(mouse_button, &QCheckBox::clicked, [this, group = static_cast<Cursor*>(group)] { + connect(mouse_button, &QCheckBox::clicked, [this, grp = static_cast<Cursor*>(group)] { std::string default_device = g_controller_interface.GetDefaultDeviceString() + ":"; const std::string controller_device = GetController()->GetDefaultDevice().ToString() + ":"; if (default_device == controller_device) { default_device.clear(); } - group->SetControlExpression(0, fmt::format("`{}Cursor Y-`", default_device)); - group->SetControlExpression(1, fmt::format("`{}Cursor Y+`", default_device)); - group->SetControlExpression(2, fmt::format("`{}Cursor X-`", default_device)); - group->SetControlExpression(3, fmt::format("`{}Cursor X+`", default_device)); + grp->SetControlExpression(0, fmt::format("`{}Cursor Y-`", default_device)); + grp->SetControlExpression(1, fmt::format("`{}Cursor Y+`", default_device)); + grp->SetControlExpression(2, fmt::format("`{}Cursor X-`", default_device)); + grp->SetControlExpression(3, fmt::format("`{}Cursor X+`", default_device)); - group->SetRelativeInput(false); + grp->SetRelativeInput(false); emit ConfigChanged(); GetController()->UpdateReferences(g_controller_interface); |
