]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
eliminate compilation warning
authoreap <eap@opencascade.com>
Tue, 19 May 2009 15:23:46 +0000 (15:23 +0000)
committereap <eap@opencascade.com>
Tue, 19 May 2009 15:23:46 +0000 (15:23 +0000)
src/StdMeshers/StdMeshers_Arithmetic1D.cxx
src/StdMeshers/StdMeshers_FaceSide.cxx
src/StdMeshers/StdMeshers_LocalLength.cxx
src/StdMeshers/StdMeshers_MaxElementArea.cxx
src/StdMeshers/StdMeshers_MaxElementVolume.cxx
src/StdMeshers/StdMeshers_MaxLength.cxx
src/StdMeshers/StdMeshers_NumberOfLayers.cxx
src/StdMeshers/StdMeshers_NumberOfSegments.cxx
src/StdMeshers/StdMeshers_StartEndLength.cxx

index f5ac03c5e640768c33f23e64e9313e0212f44353..d2e0b1bf20d3f6dcb102bd58420c8ee69689288c 100644 (file)
@@ -206,6 +206,6 @@ bool StdMeshers_Arithmetic1D::SetParametersByMesh(const SMESH_Mesh*   theMesh,
 bool StdMeshers_Arithmetic1D::SetParametersByDefaults(const TDefaults&  dflts,
                                                       const SMESH_Mesh* /*mesh*/)
 {
-  return bool( _begLength = _endLength = dflts._elemLength );
+  return ( _begLength = _endLength = dflts._elemLength );
 }
 
index 7719b4f6e799628d4678b0d3d5f9110e835e3ced..dbf7a3675b8220988fbc0424d03e863321d959fb 100644 (file)
@@ -33,7 +33,7 @@
 #include "SMESHDS_SubMesh.hxx"
 //#include "SMESH_Algo.hxx"
 #include "SMESH_Mesh.hxx"
-#include "SMESH_MeshEditor.hxx"
+#include "SMESH_MesherHelper.hxx"
 #include "SMESH_ComputeError.hxx"
 #include "SMESH_Block.hxx"
 
index d74abe9fd2c89aa5700b558ff9dfe079d5ab47e5..d52d2de5416e14fd3b3bd8c44b9c89c3f25e6b71 100644 (file)
@@ -244,6 +244,6 @@ bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh*   theMesh,
 bool StdMeshers_LocalLength::SetParametersByDefaults(const TDefaults&  dflts,
                                                      const SMESH_Mesh* /*theMesh*/)
 {
-  return bool( _length = dflts._elemLength );
+  return ( _length = dflts._elemLength );
 }
 
index 36e40e172e37cc81bf53cbd8456ce536516aa932..1dce3de1f501a18cddbd1c68f5db25a9e18a7192 100644 (file)
@@ -195,6 +195,6 @@ bool StdMeshers_MaxElementArea::SetParametersByMesh(const SMESH_Mesh*   theMesh,
 bool StdMeshers_MaxElementArea::SetParametersByDefaults(const TDefaults&  dflts,
                                                         const SMESH_Mesh* /*theMesh*/)
 {
-  return bool( _maxArea = dflts._elemLength*dflts._elemLength );
+  return ( _maxArea = dflts._elemLength*dflts._elemLength );
 }
 
index 435213aad535435f7df24d8c33b5a9d84b05c412..79be9d6bc96d8cc276fa3c2819e93ed681a8d0d6 100644 (file)
@@ -206,6 +206,6 @@ bool StdMeshers_MaxElementVolume::SetParametersByMesh(const SMESH_Mesh*   theMes
 bool StdMeshers_MaxElementVolume::SetParametersByDefaults(const TDefaults&  dflts,
                                                           const SMESH_Mesh* /*theMesh*/)
 {
-  return bool( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
+  return ( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
 }
 
index 475e56ae5aa94c9c0448a673dcd503838c89d9e0..918fe6c78c09e05b12acfdd653bab80028994a06 100644 (file)
@@ -237,6 +237,6 @@ bool StdMeshers_MaxLength::SetParametersByDefaults(const TDefaults&  dflts,
   //_preestimation = ( dflts._elemLength > 0.);
   if ( dflts._elemLength > 0. )
     _preestimated = dflts._elemLength;
-  return bool( _length = dflts._elemLength );
+  return ( _length = dflts._elemLength );
 }
 
index 604ee185aa8683eedb2d9c5e0312ec7113f7ce89..8abb02c632a3dd5549b9c3cef9a4c1106341337a 100644 (file)
@@ -171,7 +171,7 @@ bool StdMeshers_NumberOfLayers::SetParametersByDefaults(const TDefaults&  dflts,
                                                         const SMESH_Mesh* theMesh)
 {
   if ( dflts._elemLength )
-    return bool( theMesh ? _nbLayers = int( theMesh->GetShapeDiagonalSize() / dflts._elemLength/ 2.) : 0);
+    return theMesh ? (_nbLayers = int( theMesh->GetShapeDiagonalSize() / dflts._elemLength/ 2.)) : 0;
   return false;
 }
 
index 90c50a0bb4c8aa16747131e7810d24f9422b3949..0d05c5b1cacdabc87d93d69157f4f437356159f7 100644 (file)
@@ -692,6 +692,6 @@ bool StdMeshers_NumberOfSegments::SetParametersByMesh(const SMESH_Mesh*   theMes
 bool StdMeshers_NumberOfSegments::SetParametersByDefaults(const TDefaults&  dflts,
                                                           const SMESH_Mesh* /*theMesh*/)
 {
-  return bool(_numberOfSegments = dflts._nbSegments );
+  return (_numberOfSegments = dflts._nbSegments );
 }
 
index 0beb6349a1e83a5b0f06c6275fbbf7ffe17d643c..d22555ffb9c6f694b6cf4ff42aef28b3d6ac2a78 100644 (file)
@@ -207,6 +207,6 @@ bool StdMeshers_StartEndLength::SetParametersByMesh(const SMESH_Mesh*   theMesh,
 bool StdMeshers_StartEndLength::SetParametersByDefaults(const TDefaults&  dflts,
                                                         const SMESH_Mesh* /*theMesh*/)
 {
-  return bool(_begLength = _endLength = dflts._elemLength );
+  return (_begLength = _endLength = dflts._elemLength );
 }