]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
const double * MEDCouplingNormalizedCartesianMesh<SPACEDIM,MESHDIM>::getCoordsAlongA...
authoreap <eap@opencascade.com>
Thu, 1 Oct 2009 05:43:26 +0000 (05:43 +0000)
committereap <eap@opencascade.com>
Thu, 1 Oct 2009 05:43:26 +0000 (05:43 +0000)
 {
-  return _mesh->getCoordsAt(axis)->getPointer();
+  return _mesh->getCoordsAt(axis)->getConstPointer();
 }

src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx

index ec8d2cac09a4baeda0ecd70184608c951b063ebe..16b715337f49991f1fb2ef1934394270fa78eb71 100644 (file)
@@ -53,5 +53,5 @@ unsigned long MEDCouplingNormalizedCartesianMesh<SPACEDIM,MESHDIM>::nbCellsAlong
 template<int SPACEDIM,int MESHDIM>
 const double * MEDCouplingNormalizedCartesianMesh<SPACEDIM,MESHDIM>::getCoordsAlongAxis(int axis) const
 {
-  return _mesh->getCoordsAt(axis)->getPointer();
+  return _mesh->getCoordsAt(axis)->getConstPointer();
 }