summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-10-14 12:50:18 +1100
committerskidau <skidau@gmail.com>2014-10-14 12:50:18 +1100
commitfd33ecaecd3bd4d4d00dbc95bf47b3d369808b13 (patch)
tree6a48988b3832828476b1e5fe34b8f296807a8999 /Source/Core/InputCommon/ControllerEmu.cpp
parenta0691833161c908bb43bfe6a78ba65ad9c5a0c37 (diff)
parenta1bee05f5f4abf776de75fc6f0243416fd953e48 (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.cpp4
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)
{