]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
for Linux vuzlov/24085
authorViktor Uzlov <viktor.uzlov@opencascade.com>
Wed, 31 Mar 2021 14:25:34 +0000 (17:25 +0300)
committerViktor Uzlov <viktor.uzlov@opencascade.com>
Wed, 31 Mar 2021 14:25:34 +0000 (17:25 +0300)
src/SMESH/SMESH_MeshEditor.cxx

index 966e3e4aa7a183f85bf7e9a799afe38cb0be3c26..de20777e972c479c26201348ae408d7df60f3720 100644 (file)
@@ -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<TSplitMethod&>(splitMethod)._connectivity = nullptr;
+               const_cast<TSplitMethod&>(splitMethod)._ownConn = false;
        }
     bool hasFacet( const TTriangleFacet& facet ) const
     {