Skip to content

Commit 9ff5c62

Browse files
N-Dekkerhjmjohnson
authored andcommitted
STYLE: Remove resize(0) calls from constructors
It appears that those data members already have a size of zero, by default.
1 parent 9962e2f commit 9ff5c62

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

Modules/IO/PhilipsREC/src/itkPhilipsPAR.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,7 @@ GetImageInformationDefinitionV42(std::string file, int lineNum, PhilipsPAR * phi
384384

385385
PhilipsPAR::PhilipsPAR()
386386
: m_FileName("")
387-
{
388-
this->m_PARFileLines.resize(0);
389-
}
387+
{}
390388

391389
PhilipsPAR::~PhilipsPAR() = default;
392390

Modules/Segmentation/Classifiers/include/itkClassifierBase.hxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ namespace itk
2525
template <typename TDataContainer>
2626
ClassifierBase<TDataContainer>::ClassifierBase()
2727
: m_DecisionRule(nullptr)
28-
{
29-
m_MembershipFunctions.resize(0);
30-
}
28+
{}
3129

3230
template <typename TDataContainer>
3331
void

Modules/Segmentation/MarkovRandomFieldsClassifiers/include/itkMRFImageFilter.hxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ MRFImageFilter<TInputImage, TClassifiedImage>::MRFImageFilter()
3333
throw ExceptionObject(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION);
3434
}
3535
m_InputImageNeighborhoodRadius.Fill(0);
36-
m_MRFNeighborhoodWeight.resize(0);
37-
m_NeighborInfluence.resize(0);
38-
m_DummyVector.resize(0);
3936
this->SetMRFNeighborhoodWeight(m_DummyVector);
4037
this->SetDefaultMRFNeighborhoodWeight();
4138
}

Modules/Segmentation/SignedDistanceFunction/include/itkPCAShapeSignedDistanceFunction.hxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ PCAShapeSignedDistanceFunction<TCoordinate, VSpaceDimension, TImage>::PCAShapeSi
3030
: m_MeanImage(nullptr)
3131
, m_Transform(TranslationTransform<TCoordinate, SpaceDimension>::New())
3232
{
33-
m_PrincipalComponentImages.resize(0);
3433
m_PrincipalComponentStandardDeviations.SetSize(0);
35-
m_Interpolators.resize(0);
36-
m_Extrapolators.resize(0);
37-
3834
m_WeightOfPrincipalComponents.SetSize(0);
3935
m_TransformParameters.SetSize(0);
4036
this->GetParameters().SetSize(0);

0 commit comments

Comments
 (0)