Skip to content

Commit

Permalink
COMP: Use nullptr instead of 0 or NULL
Browse files Browse the repository at this point in the history
The check converts the usage of null pointer constants (eg. NULL, 0) to
use the new C++11 nullptr keyword.

SRCDIR= #My local SRC
BLDDIR= #My local BLD

cd
run-clang-tidy.py -extra-arg=-D__clang__ -checks=-*,modernize-use-nullptr  -header-filter=.* -fix
  • Loading branch information
hjmjohnson committed Mar 1, 2020
1 parent 778080f commit e53d779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/itkStripTsImageFilterTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ itkStripTsImageFilterTest(int argc, char * argv[])
return EXIT_FAILURE;
}

double startTime = time(0);
double startTime = time(nullptr);


std::string patientImageFilename = argv[1];
Expand Down Expand Up @@ -114,7 +114,7 @@ itkStripTsImageFilterTest(int argc, char * argv[])
TRY_EXPECT_NO_EXCEPTION(imageWriter->Update());


double endTime = time(0);
double endTime = time(nullptr);
std::cout << "Total computation time: " << endTime - startTime << " seconds" << std::endl;
std::cout << stripTsFilter->GetTimerReport();

Expand Down

0 comments on commit e53d779

Please sign in to comment.