Use nullptr where possible instead of NULL or 0

This commit is contained in:
Johannes Kauffmann 2022-11-22 19:09:31 +01:00 committed by Jeremy Hayes
parent 728c689574
commit a7603c132d
38 changed files with 248 additions and 248 deletions

View file

@ -157,7 +157,7 @@ namespace {
}
// Print helpful usage message to stdout, and exit
void usage(const char* const name, const char* const msg = 0)
void usage(const char* const name, const char* const msg = nullptr)
{
if (msg)
std::cout << msg << std::endl << std::endl;
@ -245,7 +245,7 @@ namespace {
verbosity = 1;
if (a < argc) {
char* end_ptr = 0;
char* end_ptr = nullptr;
int verb = ::strtol(argv[a], &end_ptr, 10);
// If we have not read to the end of the string or
// the string contained no elements, then we do not want to