Salome HOME
getHeapMemorySize rearch
[modules/med.git] / src / MEDCoupling / MEDCouplingExtrudedMesh.cxx
index 14a29179d878a0f516275f8a8ced18a4af573f79..c5a585b88ad2ad506e4d3f4df1c5693beaf89a87 100644 (file)
@@ -69,15 +69,15 @@ std::size_t MEDCouplingExtrudedMesh::getHeapMemorySizeWithoutChildren() const
   return MEDCouplingMesh::getHeapMemorySizeWithoutChildren();
 }
 
-std::vector<RefCountObject *> MEDCouplingExtrudedMesh::getDirectChildren() const
+std::vector<const BigMemoryObject *> MEDCouplingExtrudedMesh::getDirectChildren() const
 {
-  std::vector<RefCountObject *> ret;
+  std::vector<const BigMemoryObject *> ret;
   if(_mesh2D)
-    ret.push_back(const_cast<MEDCouplingUMesh *>(_mesh2D));
+    ret.push_back(_mesh2D);
   if(_mesh1D)
-    ret.push_back(const_cast<MEDCouplingUMesh *>(_mesh1D));
+    ret.push_back(_mesh1D);
   if(_mesh3D_ids)
-    ret.push_back(const_cast<DataArrayInt *>(_mesh3D_ids));
+    ret.push_back(_mesh3D_ids);
   return ret;
 }