Skip to content

Commit

Permalink
STYLE: ImageToVectorContainerFilter add const to local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Dekker committed Dec 9, 2023
1 parent 3f14584 commit 03b1516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Common/ImageSamplers/itkImageToVectorContainerFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION
ImageToVectorContainerFilter<TInputImage, TOutputVectorContainer>::ThreaderCallback(void * arg)
{
assert(arg);
const auto & workUnitInfo = *static_cast<const MultiThreaderBase::WorkUnitInfo *>(arg);
ThreadIdType threadId = workUnitInfo.WorkUnitID;
ThreadIdType threadCount = workUnitInfo.NumberOfWorkUnits;
const auto & workUnitInfo = *static_cast<const MultiThreaderBase::WorkUnitInfo *>(arg);
const ThreadIdType threadId = workUnitInfo.WorkUnitID;
const ThreadIdType threadCount = workUnitInfo.NumberOfWorkUnits;

assert(workUnitInfo.UserData);
const auto & str = *static_cast<const ThreadStruct *>(workUnitInfo.UserData);
Expand All @@ -274,7 +274,7 @@ ImageToVectorContainerFilter<TInputImage, TOutputVectorContainer>::ThreaderCallb
// execute the actual method with appropriate output region
// first find out how many pieces extent can be split into.
typename TInputImage::RegionType splitRegion;
unsigned int total = filter.SplitRequestedRegion(threadId, threadCount, splitRegion);
const unsigned int total = filter.SplitRequestedRegion(threadId, threadCount, splitRegion);

if (threadId < total)
{
Expand Down

0 comments on commit 03b1516

Please sign in to comment.