diff options
| author | Léo Lam <leo@leolam.fr> | 2020-08-17 14:49:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-17 14:49:28 +0200 |
| commit | 55c931d6248c6dda5a8a9cbd332131255d62bc3f (patch) | |
| tree | 9ea6e7205a2e37c587b44432749fb0a5cd438f2b /Source/Core/InputCommon/ControllerEmu/ControlGroup | |
| parent | 6104018fe13eeb02dfd26f02fb42d74e77e39f16 (diff) | |
| parent | ca61b6c1ab7966cb7f3509c81439e5c673f5ae88 (diff) | |
Merge pull request #8995 from Tilka/warnings
Fix some more GCC warnings
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup')
5 files changed, 12 insertions, 12 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp index 4a03527ffe..a0157eec8f 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp @@ -56,14 +56,14 @@ ControlState AnalogStick::GetGateRadiusAtAngle(double ang) const return m_stick_gate->GetRadiusAtAngle(ang); } -OctagonAnalogStick::OctagonAnalogStick(const char* name, ControlState gate_radius) - : OctagonAnalogStick(name, name, gate_radius) +OctagonAnalogStick::OctagonAnalogStick(const char* name_, ControlState gate_radius) + : OctagonAnalogStick(name_, name_, gate_radius) { } -OctagonAnalogStick::OctagonAnalogStick(const char* name, const char* ui_name, +OctagonAnalogStick::OctagonAnalogStick(const char* name_, const char* ui_name_, ControlState gate_radius) - : AnalogStick(name, ui_name, std::make_unique<ControllerEmu::OctagonStickGate>(gate_radius)) + : AnalogStick(name_, ui_name_, std::make_unique<ControllerEmu::OctagonStickGate>(gate_radius)) { } diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp index 382bd8c2a4..1c5f48a148 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp @@ -21,8 +21,8 @@ namespace ControllerEmu { -Cursor::Cursor(std::string name, std::string ui_name) - : ReshapableInput(std::move(name), std::move(ui_name), GroupType::Cursor), +Cursor::Cursor(std::string name_, std::string ui_name_) + : ReshapableInput(std::move(name_), std::move(ui_name_), GroupType::Cursor), m_last_update(Clock::now()) { for (auto& named_direction : named_directions) diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp index ccb97dd730..1e23c5dffe 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp @@ -14,8 +14,8 @@ namespace ControllerEmu { -IMUAccelerometer::IMUAccelerometer(std::string name, std::string ui_name) - : ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUAccelerometer) +IMUAccelerometer::IMUAccelerometer(std::string name_, std::string ui_name_) + : ControlGroup(std::move(name_), std::move(ui_name_), GroupType::IMUAccelerometer) { AddInput(Translate, _trans("Up")); AddInput(Translate, _trans("Down")); diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp index be90bf532c..25df9772da 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp @@ -16,9 +16,9 @@ namespace ControllerEmu { -IMUCursor::IMUCursor(std::string name, std::string ui_name) +IMUCursor::IMUCursor(std::string name_, std::string ui_name_) : ControlGroup( - std::move(name), std::move(ui_name), GroupType::IMUCursor, + std::move(name_), std::move(ui_name_), GroupType::IMUCursor, #ifdef ANDROID // Enabling this on Android devices which have an accelerometer and gyroscope prevents // touch controls from being used for pointing, and touch controls generally work better diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp index 8837c67f13..ef0e10d168 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp @@ -24,8 +24,8 @@ static constexpr auto MAXIMUM_CALIBRATION_DURATION = std::chrono::hours(1); // This is made slightly lower than the UI update frequency of 30. static constexpr auto WORST_ACCEPTABLE_CALIBRATION_UPDATE_FREQUENCY = 25; -IMUGyroscope::IMUGyroscope(std::string name, std::string ui_name) - : ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUGyroscope) +IMUGyroscope::IMUGyroscope(std::string name_, std::string ui_name_) + : ControlGroup(std::move(name_), std::move(ui_name_), GroupType::IMUGyroscope) { AddInput(Translate, _trans("Pitch Up")); AddInput(Translate, _trans("Pitch Down")); |
