Salome HOME
getHeapMemorySize rearch
[modules/med.git] / src / MEDCoupling / MEDCouplingField.cxx
index c7813180aa25a004229a67dbf6fd6149bf2f65ec..f96321bb1adc41ffb88f1e80c8b2494b821c1e74 100644 (file)
@@ -161,13 +161,13 @@ std::size_t MEDCouplingField::getHeapMemorySizeWithoutChildren() const
   return ret;
 }
 
-std::vector<RefCountObject *> MEDCouplingField::getDirectChildren() const
+std::vector<const BigMemoryObject *> MEDCouplingField::getDirectChildren() const
 {
-  std::vector<RefCountObject *> ret;
+  std::vector<const BigMemoryObject *> ret;
   if(_mesh)
-    ret.push_back(const_cast<MEDCouplingMesh *>(_mesh));
+    ret.push_back(_mesh);
   if((const MEDCouplingFieldDiscretization *)_type)
-    ret.push_back(const_cast<MEDCouplingFieldDiscretization *>((const MEDCouplingFieldDiscretization *)_type));
+    ret.push_back((const MEDCouplingFieldDiscretization *)_type);
   return ret;
 }