From 35959bdaf9090b993a24d22484b43da9c7ff2fb0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 22 Mar 2017 19:30:15 -0400 Subject: [PATCH] IniFile: Replace string joining code with JoinString --- Source/Core/Common/IniFile.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index c58b3cf50e..8877d0f61d 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -68,15 +68,7 @@ void IniFile::Section::Set(const std::string& key, const std::string& newValue, void IniFile::Section::Set(const std::string& key, const std::vector& newValues) { - std::string temp; - // Join the strings with , - for (const std::string& value : newValues) - { - temp = value + ","; - } - // remove last , - temp.resize(temp.length() - 1); - Set(key, temp); + Set(key, JoinStrings(newValues, ",")); } void IniFile::Section::Set(const std::string& key, u32 newValue)