diff --git a/include/itkRLEImage.h b/include/itkRLEImage.h index bb4a3c8..6a9563f 100644 --- a/include/itkRLEImage.h +++ b/include/itkRLEImage.h @@ -209,9 +209,7 @@ class RLEImage : public itk::ImageBase { // use the GetLength() method which works with variable length arrays, // to make it work with as much pixel types as possible - PixelType p; - - return itk::NumericTraits::GetLength(p); + return itk::NumericTraits::GetLength({}); } /** Typedef for the internally used buffer. */