Skip to content

Commit

Permalink
STYLE: Replace integer literals which are cast to bool.
Browse files Browse the repository at this point in the history
Finds and replaces integer literals which are cast to bool.

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

cd
run-clang-tidy.py -extra-arg=-D__clang__ -checks=-*,modernize-use-bool-literals  -header-filter=.* -fix
  • Loading branch information
hjmjohnson committed Feb 20, 2020
1 parent 8e763c5 commit d81d218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class itkFrequencyFFTLayoutImageRegionIteratorWithIndexTester
m_PositiveHalfRegion.SetSize(size);
m_PositiveHalfRegion.SetIndex(start);

m_ImageIsOdd = inputImageSize % 2 == 1 ? 1 : 0;
m_ImageIsOdd = inputImageSize % 2 == 1 ? true : false;
// Setup the half, negative frequencies region.
unsigned int isImageSizeOdd = m_ImageIsOdd ? 1 : 0;
size.Fill(inputImageSize / 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ ImageMomentsCalculator<TImage>::Compute()
}

/* Remember that the moments are valid */
m_Valid = 1;
m_Valid = true;
}

//---------------------------------------------------------------------
Expand Down

0 comments on commit d81d218

Please sign in to comment.