mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
IniFile: Replace string joining code with JoinString
This commit is contained in:
parent
b92871111a
commit
35959bdaf9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user