From 136b8e462ab5c19e36289b17f3d6d079b3297ea0 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Fri, 3 Apr 2020 16:22:26 -0400 Subject: [PATCH] BUG: Reset m_Dimension in VideoFileWriter Identified by: D:\a\1\s\Modules\Video\IO\include\itkVideoFileWriter.hxx(256): warning C4834: discarding return value of function with 'nodiscard' attribute .empty() only returns whether the container is empty or not. --- Modules/Video/IO/include/itkVideoFileWriter.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Video/IO/include/itkVideoFileWriter.hxx b/Modules/Video/IO/include/itkVideoFileWriter.hxx index 7c2fdf10b3d..23955fde4aa 100644 --- a/Modules/Video/IO/include/itkVideoFileWriter.hxx +++ b/Modules/Video/IO/include/itkVideoFileWriter.hxx @@ -253,7 +253,7 @@ VideoFileWriter::InitializeOutputParameters() const VideoStreamType * input = this->GetInput(); // Set dimensions - m_Dimensions.empty(); + m_Dimensions.clear(); typename FrameType::SizeType size = input->GetFrameLargestPossibleSpatialRegion(frameNum).GetSize(); for (unsigned int i = 0; i < FrameType::ImageDimension; ++i) {