Skip to content

Commit

Permalink
[vtkImageInfo] an other way to reset the complex structure and please…
Browse files Browse the repository at this point in the history
… gcc (medInria#1162)
  • Loading branch information
mathildemerle committed Nov 22, 2023
1 parent b34a101 commit 7e7f98e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void vtkImage2DDisplay::SetInputData(vtkImageData *pi_poVtkImage)
}
else
{
m_sVtkImageInfo = medVtkImageInfo();
memset(reinterpret_cast<void*>(&m_sVtkImageInfo), 0, sizeof(m_sVtkImageInfo));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void vtkImage3DDisplay::SetInputData(vtkImageData *pi_poVtkImage)
}
else
{
m_sVtkImageInfo = medVtkImageInfo();
memset(reinterpret_cast<void*>(&m_sVtkImageInfo), 0, sizeof(m_sVtkImageInfo));
}
}

Expand Down

0 comments on commit 7e7f98e

Please sign in to comment.