mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 02:59:00 +00:00
StringUtil: Remove ValueToString(std::string)
Doesn't make a lot of sense to have a function that gives the string representation for a string.
This commit is contained in:
parent
7e79bf97ab
commit
83324fe77d
3 changed files with 6 additions and 8 deletions
|
@ -120,13 +120,17 @@ public:
|
|||
template <typename T>
|
||||
void Set(const ConfigInfo<T>& config_info, const std::common_type_t<T>& value)
|
||||
{
|
||||
Set<T>(config_info.location, value);
|
||||
Set(config_info.location, value);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void Set(const ConfigLocation& location, const T& value)
|
||||
{
|
||||
const std::string new_value = ValueToString(value);
|
||||
Set(location, ValueToString(value));
|
||||
}
|
||||
|
||||
void Set(const ConfigLocation& location, const std::string& new_value)
|
||||
{
|
||||
std::optional<std::string>& current_value = m_map[location];
|
||||
if (current_value == new_value)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue