diff --git a/src/SMESH/SMESH_Block.cxx b/src/SMESH/SMESH_Block.cxx index 6d20d6be8..c03fe30c3 100644 --- a/src/SMESH/SMESH_Block.cxx +++ b/src/SMESH/SMESH_Block.cxx @@ -383,8 +383,8 @@ bool SMESH_Block::ShellPoint(const gp_XYZ& theParams, if ( thePointOnShape.size() < ID_F1yz ) return false; - double x = theParams.X(), y = theParams.Y(), z = theParams.Z(); - double x1 = 1. - x, y1 = 1. - y, z1 = 1. - z; + const double x = theParams.X(), y = theParams.Y(), z = theParams.Z(); + const double x1 = 1. - x, y1 = 1. - y, z1 = 1. - z; const vector& p = thePointOnShape; thePoint =