diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h index 3fd7e68f60..a6fc88c0a3 100644 --- a/src/common/settings_setting.h +++ b/src/common/settings_setting.h @@ -198,13 +198,13 @@ public: if constexpr (std::is_same_v) { this->SetValue(input); } else if constexpr (std::is_same_v>) { - this->SetValue(u32(std::strtoul(input.c_str(), NULL, 10))); + this->SetValue(u32(std::strtoul(input.c_str(), nullptr, 10))); } else if constexpr (std::is_same_v) { this->SetValue(input == "true"); } else if constexpr (std::is_same_v) { - this->SetValue(std::strtof(input.c_str(), NULL)); + this->SetValue(std::strtof(input.c_str(), nullptr)); } else { - this->SetValue(Type(std::strtoll(input.c_str(), NULL))); + this->SetValue(Type(std::strtoll(input.c_str(), nullptr, 10))); } }