From 2dcd0de3f973a2c9c80bfb2aaf7254c9353520ae Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 21 Feb 2006 14:59:02 +0000 Subject: [PATCH] Updated SALOME GUI sources for building under Ms Visual .NET on Windows platform. --- src/VTKViewer/VTKViewer_ShrinkFilter.cxx | 6 ++++-- src/VTKViewer/VTKViewer_Trihedron.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/VTKViewer/VTKViewer_ShrinkFilter.cxx b/src/VTKViewer/VTKViewer_ShrinkFilter.cxx index c65699a9a..b2825687a 100755 --- a/src/VTKViewer/VTKViewer_ShrinkFilter.cxx +++ b/src/VTKViewer/VTKViewer_ShrinkFilter.cxx @@ -166,7 +166,9 @@ void VTKViewer_ShrinkFilter::SetStoreMapping(int theStoreMapping){ /*!Return node object id by vtk node id. *\retval -1 - if no object, else return id. */ -vtkIdType VTKViewer_ShrinkFilter::GetNodeObjId(int theVtkID){ - if(myVTK2ObjIds.empty() || theVtkID > myVTK2ObjIds.size()) return -1; +vtkIdType VTKViewer_ShrinkFilter::GetNodeObjId(int theVtkID) +{ + if ( myVTK2ObjIds.empty() || theVtkID > (int)myVTK2ObjIds.size() ) + return -1; return myVTK2ObjIds.at(theVtkID); } diff --git a/src/VTKViewer/VTKViewer_Trihedron.h b/src/VTKViewer/VTKViewer_Trihedron.h index e40e3bc90..d134740f8 100755 --- a/src/VTKViewer/VTKViewer_Trihedron.h +++ b/src/VTKViewer/VTKViewer_Trihedron.h @@ -113,7 +113,7 @@ protected: //**************************************************************** /*!This class provide support trihedron object in vtk viewer.*/ -class VTKVIEWER_EXPORT VTKVIEWER_EXPORT VTKViewer_Trihedron : public vtkObject +class VTKVIEWER_EXPORT VTKViewer_Trihedron : public vtkObject { protected: /*!Initialize fields by default values.*/ -- 2.39.2