diff options
Diffstat (limited to 'src/ini_load.cpp')
-rw-r--r-- | src/ini_load.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ini_load.cpp b/src/ini_load.cpp index 5c208548f..33bb46b12 100644 --- a/src/ini_load.cpp +++ b/src/ini_load.cpp @@ -38,13 +38,9 @@ IniItem::~IniItem() * Replace the current value with another value. * @param value the value to replace with. */ -void IniItem::SetValue(const char *value) +void IniItem::SetValue(const std::string_view value) { - if (value == nullptr) { - this->value.reset(); - } else { - this->value.emplace(value); - } + this->value.emplace(value); } /** |