Skip to content

Commit db247e3

Browse files
committed
COMP: Remove shadowing numPoints
Addresses: /home/matt/src/ITK2/Modules/Remote/MeshToPolyData/include/itkPolyDataToMeshFilter.hxx:208:12: warning: declaration of ‘numPoints’ shadows a previous local [-Wshadow] 208 | auto numPoints = inputCellItr.Value(); | ^~~~~~~~~ /home/matt/src/ITK2/Modules/Remote/MeshToPolyData/include/itkPolyDataToMeshFilter.hxx:196:18: note: shadowed declaration is here 196 | IdentifierType numPoints = 0, cellId = 0; | ^~~~~~~~~ /home/matt/src/ITK2/Modules/Remote/MeshToPolyData/include/itkPolyDataToMeshFilter.hxx:236:12: warning: declaration of ‘numPoints’ shadows a previous local [-Wshadow] 236 | auto numPoints = inputCellItr.Value(); |
1 parent 1e594b7 commit db247e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/itkPolyDataToMeshFilter.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ PolyDataToMeshFilter<TInputPolyData>::GenerateData()
193193
typename CellContainerType::ConstIterator inputCellItr;
194194
typename CellContainerType::ConstIterator inputCellEnd;
195195

196-
IdentifierType numPoints = 0, cellId = 0;
196+
IdentifierType cellId = 0;
197197

198198
// Set vertex cells
199199
using VertexCellType = itk::VertexCell<CellType>;

0 commit comments

Comments
 (0)