diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h index 2230d3bd18..a9d2e6567b 100644 --- a/src/common/settings_setting.h +++ b/src/common/settings_setting.h @@ -191,13 +191,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))); } }