Skip to content

Commit

Permalink
BUG: Reset m_Dimension in VideoFileWriter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thewtex committed Apr 6, 2020
1 parent da78c29 commit 136b8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Video/IO/include/itkVideoFileWriter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ VideoFileWriter<TInputVideoStream>::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)
{
Expand Down

0 comments on commit 136b8e4

Please sign in to comment.