Skip to content

Commit 60e70f5

Browse files
committed
DOC: Override destructor and prefer = default for trivial bodies
Mark class destructor with `override` and replace its default body with = default; to match current practice in ITK. Cross-referencing related ITK commits, e.g.: InsightSoftwareConsortium/ITK@7ef2496 InsightSoftwareConsortium/ITK@9b74640
1 parent 42d950b commit 60e70f5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,14 +1865,6 @@ \subsection{Class Layout}
18651865
m_Buffer = PixelContainer::New();
18661866
}
18671867
1868-
1869-
template< typename TPixel, unsigned int VImageDimension >
1870-
Image< TPixel, VImageDimension >
1871-
~::Image()
1872-
{
1873-
}
1874-
1875-
18761868
...
18771869
18781870
@@ -2712,7 +2704,7 @@ \subsection{Empty Lines}
27122704
protected:
27132705
BoxImageFilter();
27142706
2715-
~BoxImageFilter() {}
2707+
~BoxImageFilter() override = default;
27162708
27172709
void GenerateInputRequestedRegion() override;
27182710

0 commit comments

Comments
 (0)