Codefix: std::optional<const std::string> is weird; why is modifying the string copy not allowed?

This commit is contained in:
Rubidium
2025-03-02 19:24:23 +01:00
committed by rubidium42
parent e9609e4558
commit 7f674b09a4
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
#include "../safeguards.h"
void ScriptConfig::Change(std::optional<const std::string> name, int version, bool force_exact_match)
void ScriptConfig::Change(std::optional<std::string> name, int version, bool force_exact_match)
{
if (name.has_value()) {
this->name = std::move(name.value());