Codechange: move script settings to std::string
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user