Salome HOME
getHeapMemorySize rearch
[modules/med.git] / src / MEDCoupling / MEDCouplingMultiFields.cxx
index 436ab8d20c53ff213b8c9e5f7062cdfbd0141b88..97653a8b2b611a0745427b44ca30b8c7524a01f7 100644 (file)
@@ -195,14 +195,14 @@ std::size_t MEDCouplingMultiFields::getHeapMemorySizeWithoutChildren() const
   return 0;
 }
 
-std::vector<RefCountObject *> MEDCouplingMultiFields::getDirectChildren() const
+std::vector<const BigMemoryObject *> MEDCouplingMultiFields::getDirectChildren() const
 {
-  std::vector<RefCountObject *> ret;
+  std::vector<const BigMemoryObject *> ret;
   for(std::vector< MEDCouplingAutoRefCountObjectPtr<MEDCouplingFieldDouble> >::const_iterator it=_fs.begin();it!=_fs.end();it++)
     {
       const MEDCouplingFieldDouble *curF(*it);
       if(curF)
-        ret.push_back(const_cast<MEDCouplingFieldDouble *>(curF));
+        ret.push_back(curF);
     }
   return ret;
 }