]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Issue 20375: A tiny fix in VTKViewer_GeometryFilter.cxx
authorvsr <vsr@opencascade.com>
Fri, 29 May 2009 12:16:25 +0000 (12:16 +0000)
committervsr <vsr@opencascade.com>
Fri, 29 May 2009 12:16:25 +0000 (12:16 +0000)
src/VTKViewer/VTKViewer_GeometryFilter.cxx

index 7e8d12e8d66a4f50125e2267b965fd5c7425c993..6286b2632b56665c14498975c3f4c063514bf677 100755 (executable)
@@ -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;