Skip to content

Commit 1cdba67

Browse files
committed
DOC: Mark misspelling SAGITAL_PLANE as [[deprecated]]
1 parent 8d828aa commit 1cdba67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Modules/Core/Common/include/itkCommonEnums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class OctreeEnums
214214
UNKNOWN_PLANE, ///< The plane is Unknown
215215
SAGITTAL_PLANE, ///< The plane is Sagittal
216216
#if !defined(ITK_LEGACY_REMOVE)
217-
SAGITAL_PLANE = SAGITTAL_PLANE, ///< Support misspelling
217+
SAGITAL_PLANE [[deprecated("Use SAGITTAL_PLANE instead")]] = SAGITTAL_PLANE, ///< Support misspelling
218218
#endif
219219
CORONAL_PLANE, ///< The plane is Coronal
220220
TRANSVERSE_PLANE ///< The plane is Transverse

Modules/Core/Common/include/itkOctree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ITKCommon_EXPORT OctreeBase : public Object
5151
// for backwards compatibility
5252
static constexpr OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
5353
static constexpr OctreeEnum SAGITTAL_PLANE = OctreeEnum::SAGITTAL_PLANE;
54-
static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
54+
[[deprecated("Use SAGITTAL_PLANE instead")]] static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITTAL_PLANE;
5555
static constexpr OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
5656
static constexpr OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
5757
#endif
@@ -189,7 +189,7 @@ class ITK_TEMPLATE_EXPORT Octree : public OctreeBase
189189
#if !defined(ITK_LEGACY_REMOVE)
190190
static constexpr OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
191191
static constexpr OctreeEnum SAGITTAL_PLANE = OctreeEnum::SAGITTAL_PLANE;
192-
static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
192+
[[deprecated("Use SAGITTAL_PLANE instead")]] static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITTAL_PLANE;
193193
static constexpr OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
194194
static constexpr OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
195195
#endif

0 commit comments

Comments
 (0)