Codechange: move script settings to std::string

This commit is contained in:
rubidium42
2021-04-29 19:04:27 +02:00
committed by rubidium42
parent 95386dc2b8
commit a032714dc4
7 changed files with 45 additions and 49 deletions

View File

@@ -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);
}
/**