Skip to content

Commit b60e158

Browse files
committed
Use factoryless instance creation for frequently used basic types
1 parent f98d5fa commit b60e158

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Modules/Core/Common/include/itkBoundingBox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ITK_TEMPLATE_EXPORT BoundingBox : public Object
8282
itkOverrideGetNameOfClassMacro(BoundingBox);
8383

8484
/** Method for creation through the object factory. */
85-
itkNewMacro(Self);
85+
itkFactorylessNewMacro(Self);
8686

8787
/* Number of corners of this bounding box. Equals `pow(2, VPointDimension)` */
8888
static constexpr SizeValueType NumberOfCorners = SizeValueType{ 1 } << VPointDimension;

Modules/Core/Common/include/itkVectorContainer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class ITK_TEMPLATE_EXPORT VectorContainer
7171
using STLContainerType = VectorType;
7272

7373
/** Method for creation through the object factory. */
74-
itkNewMacro(Self);
74+
itkFactorylessNewMacro(Self);
7575

7676
/** \see LightObject::GetNameOfClass() */
7777
itkOverrideGetNameOfClassMacro(VectorContainer);

Modules/Core/Transform/include/itkScalableAffineTransform.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class ITK_TEMPLATE_EXPORT ScalableAffineTransform : public AffineTransform<TPara
4646
itkOverrideGetNameOfClassMacro(ScalableAffineTransform);
4747

4848
/** New macro for creation of through a Smart Pointer */
49-
itkNewMacro(Self);
49+
itkFactorylessNewMacro(Self);
50+
itkCloneMacro(Self);
5051

5152
/** Dimension of the domain space. */
5253
static constexpr unsigned int InputSpaceDimension = VDimension;

0 commit comments

Comments
 (0)