1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Replace 0 and NULL with nullptr (#7827)

This commit is contained in:
Hielke Morsink
2018-07-25 22:49:20 +02:00
committed by GitHub
parent 80f67247dc
commit 0b03464186
10 changed files with 49 additions and 49 deletions

View File

@@ -19,7 +19,7 @@ inline std::string StringFromHex(const std::string_view& input)
result.reserve(input.size() / 2);
for (size_t i = 0; i < input.size(); i += 2)
{
auto val = std::stoi(std::string(input.substr(i, 2)), 0, 16);
auto val = std::stoi(std::string(input.substr(i, 2)), nullptr, 16);
result.push_back(val);
}
return result;