Merge topic 'fix_non_virtual_destructor'

a55596b38 Reorder member functions.
6fba7347a Mark pixel destructors as virtual to fix build error.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Nickolas Davis <nadavi@sandia.gov>
Merge-request: !2091
This commit is contained in:
Nick 2020-05-14 20:26:04 +00:00 committed by Kitware Robot
commit f036ebd48f

@ -88,6 +88,8 @@ public:
ConstructPixelFromImage(imageData, index);
}
virtual ~BasePixel() = default;
/// Calculates this difference between two pixels as a single value.
///
virtual ComponentType Diff(const BaseType& pixel) const = 0;
@ -141,6 +143,8 @@ public:
{
}
virtual ~RGBPixel() = default;
ComponentType Diff(const Superclass& pixel) const override;
vtkm::Vec4f_32 ToVec4f() const override;
@ -176,6 +180,8 @@ public:
{
}
virtual ~GreyPixel() = default;
ComponentType Diff(const Superclass& pixel) const override;
vtkm::Vec4f_32 ToVec4f() const override;