Skip to content

Commit

Permalink
COMP: Remove legacy initialization support for RGBA
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jun 1, 2024
1 parent 99b0f30 commit 2b47396
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Modules/Core/Common/include/itkRGBAPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ class ITK_TEMPLATE_EXPORT RGBAPixel : public FixedArray<TComponent, 4>

/** Default-constructor.
* \note The other five "special member functions" are defaulted implicitly, following the C++ "Rule of Zero". */
#ifdef ITK_FUTURE_LEGACY_REMOVE
RGBAPixel() = default;
#else
RGBAPixel() { this->Fill(0); }
#endif

/** Pass-through constructor for the Array base class. */
template <typename TRGBAPixelValueType>
Expand Down
4 changes: 0 additions & 4 deletions Modules/Core/Common/include/itkRGBPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ class ITK_TEMPLATE_EXPORT RGBPixel : public FixedArray<TComponent, 3>

/** Default-constructor.
* \note The other five "special member functions" are defaulted implicitly, following the C++ "Rule of Zero". */
#ifdef ITK_FUTURE_LEGACY_REMOVE
RGBPixel() = default;
#else
RGBPixel() { this->Fill(0); }
#endif

/** Explicit constructor to fill Red=Blue=Green= r. */
explicit RGBPixel(const ComponentType & r) { this->Fill(r); }
Expand Down

0 comments on commit 2b47396

Please sign in to comment.