Skip to content

Commit 35a15c2

Browse files
committed
DOC: Avoid using initialization lists in coding style snippets
Avoid using initialization lists in coding style code snippets: initialization lists are not encouraged as per current ITK style guidelines. Similarly, avoid using a boolean ivar setter method in the constructor, as ivars should be initialized when they are declared.
1 parent cb8ba6e commit 35a15c2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,14 +2241,9 @@ \subsection{White Spaces}
22412241
\begin{minted}[baselinestretch=1,fontsize=\footnotesize,linenos=false,bgcolor=ltgray]{cpp}
22422242
template <typename TInputImage, typename TOutputImage>
22432243
SpecializedFilter<TInputImage, TOutputImage>::SpecializedFilter()
2244-
: m_ForegroundValue(NumericTraits<InputImagePixelType>::max())
2245-
, m_BackgroundValue{}
2246-
, m_NumPixelComponents(0)
2247-
, m_NoiseSigmaIsSet(false)
2248-
, m_SearchSpaceList(ListAdaptorType::New())
22492244
{
2250-
// By default, turn off automatic kernel bandwidth sigma estimation
2251-
this->KernelBandwidthEstimationOff();
2245+
// The filter requires two inputs
2246+
this->SetNumberOfRequiredInputs(2);
22522247
}
22532248
\end{minted}
22542249
\normalsize

0 commit comments

Comments
 (0)