Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Commit ff9c379

Browse files
mxaddictfanquake
authored andcommitted
refactor: Use nullptr (c++11) instead of NULL
Regenerate univalue_escapes.h
1 parent 08a9975 commit ff9c379

File tree

5 files changed

+226
-226
lines changed

5 files changed

+226
-226
lines changed

gen/gen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void outputEscape()
4545

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

lib/univalue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const char *uvTypeName(UniValue::VType t)
228228
}
229229

230230
// not reached
231-
return NULL;
231+
return nullptr;
232232
}
233233

234234
const UniValue& find_value(const UniValue& obj, const std::string& name)

0 commit comments

Comments
 (0)