Skip to content

Commit

Permalink
refactor: Use nullptr (c++11) instead of NULL
Browse files Browse the repository at this point in the history
Regenerate univalue_escapes.h
  • Loading branch information
mxaddict authored and Martin Leitner-Ankerl committed May 9, 2022
1 parent d4bc7dd commit ae65f12
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 226 deletions.
2 changes: 1 addition & 1 deletion gen/gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void outputEscape()

for (unsigned int i = 0; i < 256; i++) {
if (escapes[i].empty()) {
printf("\tNULL,\n");
printf("\tnullptr,\n");
} else {
printf("\t\"");

Expand Down
2 changes: 1 addition & 1 deletion lib/univalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const char *uvTypeName(UniValue::VType t)
}

// not reached
return NULL;
return nullptr;
}

const UniValue& find_value(const UniValue& obj, const std::string& name)
Expand Down
Loading

0 comments on commit ae65f12

Please sign in to comment.