Codechange: Use std::strto* variants everywhere (#10720)

This commit is contained in:
Charles Pigott
2023-04-26 12:56:14 +01:00
committed by GitHub
parent 997c936893
commit 80bd5ad727
14 changed files with 24 additions and 25 deletions

View File

@@ -111,7 +111,7 @@ const FiosItem *FileList::FindItem(const char *file)
/* If no name matches, try to parse it as number */
char *endptr;
int i = strtol(file, &endptr, 10);
int i = std::strtol(file, &endptr, 10);
if (file == endptr || *endptr != '\0') i = -1;
if (IsInsideMM(i, 0, this->size())) return &this->at(i);