From: vsr Date: Fri, 29 May 2009 12:16:25 +0000 (+0000) Subject: Issue 20375: A tiny fix in VTKViewer_GeometryFilter.cxx X-Git-Tag: V5_1_2rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=706142c15c1cee6bcaea3c5b711961be18a9b946;p=modules%2Fgui.git Issue 20375: A tiny fix in VTKViewer_GeometryFilter.cxx --- 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;