Skip to content

Commit

Permalink
Merge pull request #1268 from lioncash/append
Browse files Browse the repository at this point in the history
ControllerEmu: Get rid of redundant string appending
  • Loading branch information
skidau committed Oct 14, 2014
2 parents a069183 + a1bee05 commit fd33eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/InputCommon/ControllerEmu.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit fd33eca

Please sign in to comment.