-
-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Fix TransformPhysicalPointToContinuousIndex
nodiscard
warnings
Did find code like this: ContinuousIndexType index; image->TransformPhysicalPointToContinuousIndex(point, index); And replaced it by something like: const ContinuousIndexType index = image->template TransformPhysicalPointToContinuousIndex<ContinuousIndexValueType>(point); When the `bool` return value is ignored, it is preferable to call the overload that just returns the continuous index, preventing nodiscard compiler warnings. These cases are found in Visual Studio, using the following regular expression: ` [^ ]+->TransformPhysicalPointToContinuousIndex\(.*,`
- Loading branch information
Showing
6 changed files
with
25 additions
and
20 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