summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
-rw-r--r--Source/Core/Common/IniFile.cpp10
1 files changed, 1 insertions, 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<std::string>& 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)