Move Config ValueToString to StringUtil

An identical implementation is used by IniFile, so move those functions
to StringUtil. A future commit will modify IniFile to use them.
This commit is contained in:
Léo Lam
2018-06-03 14:10:52 +02:00
parent 66ee47c417
commit fc0193c4b1
6 changed files with 61 additions and 57 deletions

View File

@ -103,7 +103,7 @@ void IniFile::Section::Set(const std::string& key, s64 newValue)
void IniFile::Section::Set(const std::string& key, bool newValue)
{
Set(key, StringFromBool(newValue));
Set(key, ValueToString(newValue));
}
bool IniFile::Section::Get(const std::string& key, std::string* value,