Skip to content

Commit 2467084

Browse files
committed
style(itk-wasm): Rename ITK_DISALLOW_COPY_AND_ASSIGN to ITK_DISALLOW_COPY_AND_MOVE
Clarifies that the macro does not just disallow copy and assign, but also move operations. Note that in this context, the term 'move' refers to both move-construct and move-assign. With this commit, the old macro name will remain available, as long as 'ITK_FUTURE_LEGACY_REMOVE = OFF' (which is the default).
1 parent 626fedd commit 2467084

10 files changed

+10
-10
lines changed

include/itkWasmImageIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class WebAssemblyInterface_EXPORT WasmImageIO: public StreamingImageIOBase
105105
size_t WriteCBOR(const void * buffer = nullptr, unsigned char ** cborBuffer = nullptr, bool allocateCBORBuffer = false);
106106

107107
private:
108-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmImageIO);
108+
ITK_DISALLOW_COPY_AND_MOVE(WasmImageIO);
109109
};
110110
} // end namespace itk
111111

include/itkWasmImageIOFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class WebAssemblyInterface_EXPORT WasmImageIOFactory: public ObjectFactoryBase
6363
~WasmImageIOFactory() override;
6464

6565
private:
66-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmImageIOFactory);
66+
ITK_DISALLOW_COPY_AND_MOVE(WasmImageIOFactory);
6767
};
6868
} // end namespace itk
6969

include/itkWasmMeshIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class WebAssemblyInterface_EXPORT WasmMeshIO: public MeshIOBase
115115
cbor_item_t * m_CBORRoot{ nullptr };
116116

117117
private:
118-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmMeshIO);
118+
ITK_DISALLOW_COPY_AND_MOVE(WasmMeshIO);
119119
};
120120
} // end namespace itk
121121

include/itkWasmMeshIOFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class WebAssemblyInterface_EXPORT WasmMeshIOFactory: public ObjectFactoryBase
6363
~WasmMeshIOFactory() override;
6464

6565
private:
66-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmMeshIOFactory);
66+
ITK_DISALLOW_COPY_AND_MOVE(WasmMeshIOFactory);
6767
};
6868
} // end namespace itk
6969

include/itkWasmTransformIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class ITK_TEMPLATE_EXPORT WasmTransformIOTemplate : public TransformIOBaseTempla
115115
cbor_item_t * m_CBORRoot{ nullptr };
116116

117117
private:
118-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmTransformIOTemplate);
118+
ITK_DISALLOW_COPY_AND_MOVE(WasmTransformIOTemplate);
119119
};
120120
} // end namespace itk
121121

include/itkWasmTransformIOFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class WebAssemblyInterface_EXPORT WasmTransformIOFactory : public ObjectFactoryB
6666
~WasmTransformIOFactory() override;
6767

6868
private:
69-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmTransformIOFactory);
69+
ITK_DISALLOW_COPY_AND_MOVE(WasmTransformIOFactory);
7070
};
7171
} // end namespace itk
7272

packages/dicom/gdcm/read-image-dicom-file-series.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ template <typename TOutputImage>
5252
class ITK_TEMPLATE_EXPORT QuickDICOMImageSeriesReader : public ImageSeriesReader<TOutputImage>
5353
{
5454
public:
55-
ITK_DISALLOW_COPY_AND_ASSIGN(QuickDICOMImageSeriesReader);
55+
ITK_DISALLOW_COPY_AND_MOVE(QuickDICOMImageSeriesReader);
5656

5757
/** Standard class type aliases. */
5858
using Self = QuickDICOMImageSeriesReader;

packages/image-io/itkWasmZstdImageIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class WebAssemblyInterface_EXPORT WasmZstdImageIO: public WasmImageIO
7878
~WasmZstdImageIO() override;
7979

8080
private:
81-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmZstdImageIO);
81+
ITK_DISALLOW_COPY_AND_MOVE(WasmZstdImageIO);
8282
};
8383
} // end namespace itk
8484

packages/mesh-io/itkWasmZstdMeshIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class WebAssemblyInterface_EXPORT WasmZstdMeshIO: public WasmMeshIO
7070
~WasmZstdMeshIO() override;
7171

7272
private:
73-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmZstdMeshIO);
73+
ITK_DISALLOW_COPY_AND_MOVE(WasmZstdMeshIO);
7474
};
7575
} // end namespace itk
7676

packages/transform-io/itkWasmZstdTransformIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ITK_TEMPLATE_EXPORT WasmZstdTransformIOTemplate: public WasmTransformIOTem
7474
~WasmZstdTransformIOTemplate() override;
7575

7676
private:
77-
ITK_DISALLOW_COPY_AND_ASSIGN(WasmZstdTransformIOTemplate);
77+
ITK_DISALLOW_COPY_AND_MOVE(WasmZstdTransformIOTemplate);
7878
};
7979
} // end namespace itk
8080

0 commit comments

Comments
 (0)