summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerEmu.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-10-29 01:09:01 -0400
committercomex <comexk@gmail.com>2013-11-03 20:54:01 -0500
commit965b32be9c38cb8f03632ab15f3a0d3aa98004af (patch)
tree8b27dd92a256dcbe0a41addf9ea4791332ed03dc /Source/Core/InputCommon/Src/ControllerEmu.cpp
parent00fe5057f13bca3416b9d25a1fe9df27c514b29c (diff)
Run code through clang-modernize -loop-convert to create range-based for loops, and manually fix some stuff up.
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerEmu.cpp')
-rw-r--r--Source/Core/InputCommon/Src/ControllerEmu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerEmu.cpp b/Source/Core/InputCommon/Src/ControllerEmu.cpp
index 328fcb8c2f..e2e37789c7 100644
--- a/Source/Core/InputCommon/Src/ControllerEmu.cpp
+++ b/Source/Core/InputCommon/Src/ControllerEmu.cpp
@@ -221,8 +221,8 @@ void ControllerEmu::SaveConfig(IniFile::Section *sec, const std::string& base)
ControllerEmu::AnalogStick::AnalogStick(const char* const _name) : ControlGroup(_name, GROUP_TYPE_STICK)
{
- for (unsigned int i = 0; i < 4; ++i)
- controls.push_back(new Input(named_directions[i]));
+ for (auto& named_direction : named_directions)
+ controls.push_back(new Input(named_direction));
controls.push_back(new Input(_trans("Modifier")));
@@ -290,8 +290,8 @@ ControllerEmu::Cursor::Cursor(const char* const _name)
: ControlGroup(_name, GROUP_TYPE_CURSOR)
, m_z(0)
{
- for (unsigned int i = 0; i < 4; ++i)
- controls.push_back(new Input(named_directions[i]));
+ for (auto& named_direction : named_directions)
+ controls.push_back(new Input(named_direction));
controls.push_back(new Input("Forward"));
controls.push_back(new Input("Backward"));
controls.push_back(new Input(_trans("Hide")));