Skip to content

Commit

Permalink
STYLE: Remove memset(&xfm.back(), 0...) after xfm.emplace_back()
Browse files Browse the repository at this point in the history
`xfm.emplace_back()` already properly initializes the added element.
  • Loading branch information
N-Dekker committed Oct 6, 2024
1 parent 1dd7606 commit e6217a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/IO/TransformMINC/src/itkMINCTransformIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ MINCTransformIOTemplate<TParametersValueType>::WriteOneTransform(const int
Transform_elem(lin, 3, 3) = 1.0;

xfm.emplace_back();
memset(&xfm.back(), 0, sizeof(VIO_General_transform));
create_linear_transform(&xfm.back(), &lin);
}
else if (transformType.find("DisplacementFieldTransform_") != std::string::npos &&
Expand Down

0 comments on commit e6217a8

Please sign in to comment.