Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit 66a74d2

Browse files
hjmjohnsondzenanz
authored andcommitted
COMP: Avoid single value vector constructor
Implicit conversion of a single scalar value to a container (which would _fill_ the container by the scalar value) is discouraged. With ITK 5.3, when having `ITK_LEGACY_REMOVE=ON`, the constructors of `Point`, `RGBPixel`, `RGBAPixel`, and `Vector` that accept a single scalar value as argument are declared `explicit`. ITK 5.3 has included a preferable alternative to these constructors: `itk::MakeFilled<ContainerType>(value)`.
1 parent b66464f commit 66a74d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/itkLinearAnisotropicDiffusionLBRImageFilter.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ LinearAnisotropicDiffusionLBRImageFilter<TImage, TScalar>::ImageUpdate(ScalarTyp
477477
ImageRegionConstIterator<StencilImageType> stencilIt(m_StencilImage, region);
478478

479479
// Rest of function is a hand-made (sparse matrix)*vector product.
480-
m_NextImage->FillBuffer(0.);
480+
m_NextImage->FillBuffer({});
481481

482482
// Taking care of Off-Diagonal matrix elements. Cannot be parallelized due to non-local modifications of outputBuffer
483483
for (inputIt.GoToBegin(), outputIt.GoToBegin(), stencilIt.GoToBegin(); !inputIt.IsAtEnd();

0 commit comments

Comments
 (0)