Skip to content

Commit 78679a0

Browse files
ojayanthspinler
authored andcommitted
clang-tidy: Replace NULL with nullptr
Replaced all instances of NULL with nullptr to improve type safety and clarity, as nullptr is the modern C++ standard for null pointers. Tested: Build verified Change-Id: I35a696a754bf88e8b017984bad7e9f143ecfbb9e Signed-off-by: Jayanth Othayoth <[email protected]>
1 parent b6d3e2f commit 78679a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

logging_test.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ int main(int argc, char* argv[])
238238
return elog_test();
239239

240240
static struct option long_options[] = {
241-
{"help", no_argument, 0, 'h'},
242-
{"commit", required_argument, 0, 'c'},
243-
{0, 0, 0, 0}};
241+
{"help", no_argument, nullptr, 'h'},
242+
{"commit", required_argument, nullptr, 'c'},
243+
{nullptr, 0, nullptr, 0}};
244244
int option_index = 0;
245245

246246
while ((arg = getopt_long(argc, argv, "hc:", long_options,

0 commit comments

Comments
 (0)