-
-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Replace
NumericTraits<T>::ZeroValue()
with T{}
For any type `T` that is supported by `NumericTraits<T>`, the expression `NumericTraits<T>::ZeroValue()` is just equivalent to `T{}`. `T{}` appears preferable, because it is more generic, and it may yield faster code than the corresponding `NumericTraits<T>::ZeroValue()` function call. Using Notepad++, Replace in Files: Find what: itk::NumericTraits<(\w+)>::ZeroValue\(\) NumericTraits<(\w+)>::ZeroValue\(\) itk::NumericTraits<([^ <>]+)>::ZeroValue\(\) NumericTraits<([^ <>]+)>::ZeroValue\(\) itk::NumericTraits<(typename [^ <>]+)>::ZeroValue\(\) NumericTraits<(typename [^ <>]+)>::ZeroValue\(\) itk::NumericTraits<(itk::NumericTraits<[^ ]+>::ValueType)>::ZeroValue\(\) itk::NumericTraits<(typename itk::NumericTraits<[^ ]+>::ValueType)>::ZeroValue\(\) NumericTraits<(typename NumericTraits<[^ ]+>::ValueType)>::ZeroValue\(\) itk::NumericTraits<(typename .+)>::ZeroValue\(\) NumericTraits<(typename .+)>::ZeroValue\(\) Replace with: $1{} Filters: itk*.hxx;itk*.h;itk*.cxx Directory: ITK\Modules [v] Match case (*) Regular expression Excluded "itkNumericTraitsTest.cxx", because it purposely calls `NumericTraits::ZeroValue()` as part of the test. Follow-up to pull request #4017 commit 5ac803e "STYLE: Replace `T var{ NumericTraits<T>::ZeroValue() }` with `T var{}`"
- Loading branch information
Showing
441 changed files
with
1,017 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.