Closed N-Dekker closed 5 months ago
Removed m_UseImageDirection = true and m_UseImageSpacing = true assignment from the function body of the corresponding constructors.
m_UseImageDirection = true
m_UseImageSpacing = true
Following C++ Core Guidelines, "Prefer initialization to assignment in constructors"
Default member initializers also have the advantage that those default values will be shown in the API documentation. For example, https://itk.org/Doxygen/html/classitk_1_1GradientImageFilter.html now still says:
bool m_UseImageDirection {} bool m_UseImageSpacing {}
But it will show the default value true for those member variables, once this pull request is processed.
true
/azp run ITK.macOS.Python
Removed
m_UseImageDirection = true
andm_UseImageSpacing = true
assignment from the function body of the corresponding constructors.Following C++ Core Guidelines, "Prefer initialization to assignment in constructors"
Default member initializers also have the advantage that those default values will be shown in the API documentation. For example, https://itk.org/Doxygen/html/classitk_1_1GradientImageFilter.html now still says:
But it will show the default value
true
for those member variables, once this pull request is processed.