diff --git a/common/SettingsInterface.h b/common/SettingsInterface.h index 3b5eb4a8b6..2a243ec6fd 100644 --- a/common/SettingsInterface.h +++ b/common/SettingsInterface.h @@ -92,31 +92,31 @@ public: return value; } - __fi std::optional GetOptionalIntValue(const char* section, const char* key, std::optional default_value = std::nullopt) + __fi std::optional GetOptionalIntValue(const char* section, const char* key, std::optional default_value = std::nullopt) const { int ret; return GetIntValue(section, key, &ret) ? std::optional(ret) : default_value; } - __fi std::optional GetOptionalUIntValue(const char* section, const char* key, std::optional default_value = std::nullopt) + __fi std::optional GetOptionalUIntValue(const char* section, const char* key, std::optional default_value = std::nullopt) const { uint ret; return GetUIntValue(section, key, &ret) ? std::optional(ret) : default_value; } - __fi std::optional GetOptionalFloatValue(const char* section, const char* key, std::optional default_value = std::nullopt) + __fi std::optional GetOptionalFloatValue(const char* section, const char* key, std::optional default_value = std::nullopt) const { float ret; return GetFloatValue(section, key, &ret) ? std::optional(ret) : default_value; } - __fi std::optional GetOptionalDoubleValue(const char* section, const char* key, std::optional default_value = std::nullopt) + __fi std::optional GetOptionalDoubleValue(const char* section, const char* key, std::optional default_value = std::nullopt) const { double ret; return GetDoubleValue(section, key, &ret) ? std::optional(ret) : default_value; } - __fi std::optional GetOptionalBoolValue(const char* section, const char* key, std::optional default_value = std::nullopt) + __fi std::optional GetOptionalBoolValue(const char* section, const char* key, std::optional default_value = std::nullopt) const { bool ret; return GetBoolValue(section, key, &ret) ? std::optional(ret) : default_value;