Salome HOME
0020062: [CEA 295] Type coherence in *.i files
authordmv <dmv@opencascade.com>
Tue, 30 Dec 2008 14:11:08 +0000 (14:11 +0000)
committerdmv <dmv@opencascade.com>
Tue, 30 Dec 2008 14:11:08 +0000 (14:11 +0000)
src/DriverUNV/UNV_Utilities.hxx
src/MEFISTO2/aptrte.h
src/SMESH/Makefile.am
src/SMESH/SMESH_Mesh.cxx
src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx

index 891f1872027ef7dd8fefcdaf4baecf05e670570a..2f1e8269ef9b071889e5022738fbdf49503f0a9f 100644 (file)
@@ -30,6 +30,7 @@
 #include <string>
 #include <stdexcept>
 #include <cassert>
+#include <cstdlib>
 
 namespace UNV{
   class MESHDRIVERUNV_EXPORT PrefixPrinter{
index ab407ec89a46b03b1992eb3d2666ab4c4b074837..68fb0e63ac414a1e6681d4953592a658fbe459e4 100755 (executable)
 #ifndef aptrte__h
 #define aptrte__h
 
-#include <limits.h>   // limites min max int long real ...
+#include <climits>   // limites min max int long real ...
 #ifndef WIN32
 #include <unistd.h>   // gethostname, ...
 #endif
 #include <stdio.h>
 #ifndef WIN32
-#include <iostream.h> // pour cout cin ...
-#include <iomanip.h>  // pour le format des io setw, stx, setfill, ...
+#include <iostream> // pour cout cin ...
+#include <iomanip>  // pour le format des io setw, stx, setfill, ...
 #endif
 #include <string.h>   // pour les fonctions sur les chaines de caracteres
 #include <ctype.h>
index 11a0ca58e9d616b22fd0662d73d07647d7fa65d0..782a17a705b11b68e99991644b47c892d0a24b22 100644 (file)
@@ -81,11 +81,11 @@ dist_libSMESHimpl_la_SOURCES = \
 
 # additionnal information to compile and link file
 libSMESHimpl_la_CPPFLAGS = \
+       $(CAS_CPPFLAGS) \
        $(KERNEL_CXXFLAGS) \
        $(MED_CXXFLAGS) \
        $(GEOM_CXX_FLAGS) \
        $(BOOST_CPPFLAGS) \
-       $(CAS_CPPFLAGS) \
        @HDF5_INCLUDES@ \
        -I$(srcdir)/../Controls \
        -I$(srcdir)/../Driver \
index 9892eee07ea2c64dffe7947bc04ceccd35cb4b54..1b2f06bc5a11ba47f2e726d56c9061fa795f204d 100644 (file)
@@ -49,6 +49,7 @@
 #include "DriverUNV_R_SMDS_Mesh.h"
 #include "DriverSTL_R_SMDS_Mesh.h"
 
+#undef _Precision_HeaderFile
 #include <BRepPrimAPI_MakeBox.hxx>
 #include <TopExp.hxx>
 #include <TopExp_Explorer.hxx>
index dbae5398480a119e6b3d81cc684afab4b051d577..cf714ae7853dd3017488efb17d9b3d5f197a2f7d 100644 (file)
@@ -88,7 +88,7 @@ using namespace std;
 
 namespace SMESH {
 
-  void ReverseConnectivity( vector<int> & ids, int type )
+  void ReverseConnectivity( vector<vtkIdType> & ids, int type )
   {
     // for reverse connectivity of other types keeping the first id, see
     // void SMESH_VisualObjDef::buildElemPrs() in SMESH_Object.cxx:900
@@ -136,7 +136,7 @@ namespace SMESH {
       reverse( ids.begin(), ids.end() );
     }
     else {
-      vector<int> aRevIds( ids.size() );
+      vector<vtkIdType> aRevIds( ids.size() );
       for ( int i = 0; i < ids.size(); i++)
         aRevIds[ i ] = ids[ conn[ i ]];
       ids = aRevIds;
@@ -651,7 +651,7 @@ void SMESHGUI_AddQuadraticElementDlg::ClickOnApply()
 
   BusyLocker lock( myBusy );
     
-  vector<int> anIds;
+  vector<vtkIdType> anIds;
 
   switch (myType) {
   case QUAD_EDGE: