-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Replace
if (x > f()) x = f()
with x = std::min(x, f())
Simplified the code by using `std::min`. Using Notepad++, Replace in Files: Find what: ([ ]+)if \(([^ ]+) > ([^ ]+\))\)\r\n\1{\r\n\1 \2 = \3;\r\n\1} Replace with: \1\2 = std::min\(\2, \3\); Filters: itk*.hxx;itk*.h;itk*.cxx [v] Match case (*) Regular expression Manually added the necessary template argument to the `std::min` call in `IntensityWindowingImageFilter`, because it could not be deduced automatically.
- Loading branch information
Showing
6 changed files
with
14 additions
and
32 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