mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 13:39:09 +00:00
Codechange: Use std::strto* variants everywhere (#10720)
This commit is contained in:
@@ -174,7 +174,7 @@ void SetDebugString(const char *s, void (*error_func)(const std::string &))
|
||||
if (*s >= '0' && *s <= '9') {
|
||||
const DebugLevel *i;
|
||||
|
||||
v = strtoul(s, &end, 0);
|
||||
v = std::strtoul(s, &end, 0);
|
||||
s = end;
|
||||
|
||||
for (i = debug_level; i != endof(debug_level); ++i) {
|
||||
@@ -201,7 +201,7 @@ void SetDebugString(const char *s, void (*error_func)(const std::string &))
|
||||
}
|
||||
|
||||
if (*s == '=') s++;
|
||||
v = strtoul(s, &end, 0);
|
||||
v = std::strtoul(s, &end, 0);
|
||||
s = end;
|
||||
if (found != nullptr) {
|
||||
new_levels[found->name] = v;
|
||||
|
Reference in New Issue
Block a user