summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-03-22 19:30:15 -0400
committerLioncash <mathew1800@gmail.com>2017-03-22 19:30:15 -0400
commit35959bdaf9090b993a24d22484b43da9c7ff2fb0 (patch)
tree76b598641dfc25d4c60e476e5b7c4311172f0b54 /Source/Core/Common/IniFile.cpp
parentb92871111a400cb8cf834db59366400ed9568960 (diff)
IniFile: Replace string joining code with JoinString
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)