summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-10-12 17:47:10 -0400
committerLioncash <mathew1800@gmail.com>2014-10-12 17:47:10 -0400
commita1bee05f5f4abf776de75fc6f0243416fd953e48 (patch)
treebd31536e328c47f59aa9257212f193bfb33624d0 /Source/Core/InputCommon/ControllerEmu.cpp
parent18c81dbc3325309323885be3b61861cc57746de2 (diff)
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)
{