From 706142c15c1cee6bcaea3c5b711961be18a9b946 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 29 May 2009 12:16:25 +0000 Subject: [PATCH] Issue 20375: A tiny fix in VTKViewer_GeometryFilter.cxx --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index 7e8d12e8d..6286b2632 100755 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -1098,7 +1098,7 @@ void VTKViewer_GeometryFilter::BuildArcedPolygon(vtkIdType cellId, vtkUnstructur //----------------------------------------------------------------------------------------- if(triangulate){ - vtkIdType numFacePts = 3; + const vtkIdType numFacePts = 3; vtkIdList *pts = vtkIdList::New(); vtkPoints *coords = vtkPoints::New(); aCellType = VTK_TRIANGLE; @@ -1211,7 +1211,7 @@ void VTKViewer_GeometryFilter::BuildArcedPolygon(vtkIdType cellId, vtkUnstructur //----------------------------------------------------------------------------------------- if(triangulate){ - vtkIdType numFacePts = 3; + const vtkIdType numFacePts = 3; vtkIdList *pts = vtkIdList::New(); vtkPoints *coords = vtkPoints::New(); aCellType = VTK_TRIANGLE; -- 2.39.2