]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
minor change
authoreap <eap@opencascade.com>
Tue, 18 Jan 2011 11:02:03 +0000 (11:02 +0000)
committereap <eap@opencascade.com>
Tue, 18 Jan 2011 11:02:03 +0000 (11:02 +0000)
src/SMESH/SMESH_Block.cxx

index 6d20d6be86a865b2abdbeaed02fda07d116bd1d4..c03fe30c3883ba1093decf446e5137667fc9c12b 100644 (file)
@@ -383,8 +383,8 @@ bool SMESH_Block::ShellPoint(const gp_XYZ&         theParams,
   if ( thePointOnShape.size() < ID_F1yz )
     return false;
 
   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<gp_XYZ>& p = thePointOnShape;
 
   thePoint = 
   const vector<gp_XYZ>& p = thePointOnShape;
 
   thePoint =