diff options
| author | skidau <skidau@gmail.com> | 2014-10-14 12:50:18 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-10-14 12:50:18 +1100 |
| commit | fd33ecaecd3bd4d4d00dbc95bf47b3d369808b13 (patch) | |
| tree | 6a48988b3832828476b1e5fe34b8f296807a8999 /Source/Core/InputCommon/ControllerEmu.cpp | |
| parent | a0691833161c908bb43bfe6a78ba65ad9c5a0c37 (diff) | |
| parent | a1bee05f5f4abf776de75fc6f0243416fd953e48 (diff) | |
Merge pull request #1268 from lioncash/append
ControllerEmu: Get rid of redundant string appending
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu.cpp index 34a6fade25..f7de12c2e7 100644 --- a/Source/Core/InputCommon/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu.cpp @@ -38,7 +38,7 @@ void ControllerEmu::UpdateDefaultDevice() void ControllerEmu::ControlGroup::LoadConfig(IniFile::Section *sec, const std::string& defdev, const std::string& base) { - std::string group(base + name); group += "/"; + std::string group(base + name + "/"); // settings for (auto& s : settings) @@ -100,7 +100,7 @@ void ControllerEmu::LoadConfig(IniFile::Section *sec, const std::string& base) void ControllerEmu::ControlGroup::SaveConfig(IniFile::Section *sec, const std::string& defdev, const std::string& base) { - std::string group(base + name); group += "/"; + std::string group(base + name + "/"); for (auto& s : settings) { |
