Salome HOME
LOT7: fix compilation at med_int==int64
[modules/med.git] / src / MEDCouplingCorba / MEDCouplingMeshServant.cxx
index eae02a0ff825d4bb6eb9e43c354af3ab0e6e765c..c0042d3c6ed3087317dae3269a2adf4b0e083b20 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -23,7 +23,7 @@
 #include "MEDCouplingMesh.hxx"
 #include "MEDCouplingMemArray.hxx"
 
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
 MEDCouplingMeshServant::MEDCouplingMeshServant(const MEDCouplingMesh *cppPointerOfMesh):MEDCouplingRefCountServant(cppPointerOfMesh,cppPointerOfMesh)
 {
@@ -39,7 +39,7 @@ void MEDCouplingMeshServant::getTinyInfo(SALOME_TYPES::ListOfDouble_out da, SALO
   da=new SALOME_TYPES::ListOfDouble;
   la=new SALOME_TYPES::ListOfLong;
   std::vector<double> tinyInfoD;
-  std::vector<int> tinyInfoI;
+  std::vector<mcIdType> tinyInfoI;
   std::vector<std::string> tinyInfoS;
   getPointer()->getTinySerializationInformation(tinyInfoD,tinyInfoI,tinyInfoS);
   da->length(tinyInfoD.size());
@@ -58,14 +58,14 @@ void MEDCouplingMeshServant::getTinyInfo(SALOME_TYPES::ListOfDouble_out da, SALO
 
 void MEDCouplingMeshServant::getSerialisationData(SALOME_TYPES::ListOfLong_out la, SALOME_TYPES::ListOfDouble_out da)
 {
-  DataArrayInt *array1;
+  DataArrayIdType *array1;
   DataArrayDouble *array2;
   getPointer()->serialize(array1,array2);
   la=new SALOME_TYPES::ListOfLong;
   if(array1)
     {
       int lgth=array1->getNbOfElems();
-      const int *data=array1->getConstPointer();
+      const mcIdType *data=array1->getConstPointer();
       la->length(lgth);
       for(int i=0;i<lgth;i++)
         (*la)[i]=data[i];