From a5d385dce599bc49a8efaa8ee8d3845bd78fe72e Mon Sep 17 00:00:00 2001 From: Viktor Uzlov Date: Wed, 31 Mar 2021 17:25:34 +0300 Subject: [PATCH] for Linux --- src/SMESH/SMESH_MeshEditor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 966e3e4aa..de20777e9 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -1808,7 +1808,7 @@ namespace TSplitMethod( int nbTet=0, const int* conn=0, bool addNode=false) : _nbSplits(nbTet), _nbCorners(4), _connectivity(conn), _baryNode(addNode), _ownConn(false) {} ~TSplitMethod() { if ( _ownConn ) delete [] _connectivity; _connectivity = 0; } - TSplitMethod(TSplitMethod &splitMethod) + TSplitMethod(const TSplitMethod &splitMethod) : _nbSplits(splitMethod._nbSplits), _nbCorners(splitMethod._nbCorners), _baryNode(splitMethod._baryNode), @@ -1816,8 +1816,8 @@ namespace _faceBaryNode(splitMethod._faceBaryNode) { _connectivity = splitMethod._connectivity; - splitMethod._connectivity = nullptr; - splitMethod._ownConn = false; + const_cast(splitMethod)._connectivity = nullptr; + const_cast(splitMethod)._ownConn = false; } bool hasFacet( const TTriangleFacet& facet ) const { -- 2.39.2