From a1bee05f5f4abf776de75fc6f0243416fd953e48 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 12 Oct 2014 17:47:10 -0400 Subject: [PATCH] ControllerEmu: Get rid of redundant string appending --- Source/Core/InputCommon/ControllerEmu.cpp | 4 ++-- 1 file 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) {