Skip to content

Commit

Permalink
[medVtkImageInfo] proper reset of a complex structure --sync (#796)
Browse files Browse the repository at this point in the history
* [medVtkImageInfo] proper reset of a complex structure (medInria#1151)

* [vtkImageInfo] an other way to reset the complex structure and please gcc (medInria#1162)
  • Loading branch information
mathildemerle authored Nov 22, 2023
1 parent 4a69ee1 commit 8697d1b
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
{
memset(&m_sVtkImageInfo, 0, sizeof(m_sVtkImageInfo));
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
{
memset(&m_sVtkImageInfo, 0, sizeof(m_sVtkImageInfo));
memset(reinterpret_cast<void*>(&m_sVtkImageInfo), 0, sizeof(m_sVtkImageInfo));
}
}

Expand Down

0 comments on commit 8697d1b

Please sign in to comment.