diff options
| author | 2022-07-22 18:33:38 +0100 | |
|---|---|---|
| committer | 2022-07-22 18:53:21 +0100 | |
| commit | 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch) | |
| tree | 5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/configparser.cpp | |
| parent | Update author list. (diff) | |
Switch from NULL to nullptr.
Diffstat (limited to 'src/configparser.cpp')
| -rw-r--r-- | src/configparser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 76ddc6378..fa349fbe6 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -280,7 +280,7 @@ struct Parser final stack.output.emplace(name, tag); } // this is not a leak; shared_ptr takes care of the delete - tag = NULL; + tag = nullptr; } bool outer_parse() @@ -647,7 +647,7 @@ long ConfigTag::getInt(const std::string& key, long def, long min, long max) con return def; const char* res_cstr = result.c_str(); - char* res_tail = NULL; + char* res_tail = nullptr; long res = strtol(res_cstr, &res_tail, 0); if (res_tail == res_cstr) return def; @@ -664,7 +664,7 @@ unsigned long ConfigTag::getUInt(const std::string& key, unsigned long def, unsi return def; const char* res_cstr = result.c_str(); - char* res_tail = NULL; + char* res_tail = nullptr; unsigned long res = strtoul(res_cstr, &res_tail, 0); if (res_tail == res_cstr) return def; @@ -697,7 +697,7 @@ double ConfigTag::getFloat(const std::string& key, double def, double min, doubl if (!readString(key, result)) return def; - double res = strtod(result.c_str(), NULL); + double res = strtod(result.c_str(), nullptr); CheckRange(this, key, res, def, min, max); return res; } |
