eliminate compilation warning

This commit is contained in:
eap 2009-05-19 15:23:46 +00:00
parent c50dcca3fe
commit 413a2425d7
9 changed files with 9 additions and 9 deletions

View File

@ -206,6 +206,6 @@ bool StdMeshers_Arithmetic1D::SetParametersByMesh(const SMESH_Mesh* theMesh,
bool StdMeshers_Arithmetic1D::SetParametersByDefaults(const TDefaults& dflts, bool StdMeshers_Arithmetic1D::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*mesh*/) const SMESH_Mesh* /*mesh*/)
{ {
return bool( _begLength = _endLength = dflts._elemLength ); return ( _begLength = _endLength = dflts._elemLength );
} }

View File

@ -33,7 +33,7 @@
#include "SMESHDS_SubMesh.hxx" #include "SMESHDS_SubMesh.hxx"
//#include "SMESH_Algo.hxx" //#include "SMESH_Algo.hxx"
#include "SMESH_Mesh.hxx" #include "SMESH_Mesh.hxx"
#include "SMESH_MeshEditor.hxx" #include "SMESH_MesherHelper.hxx"
#include "SMESH_ComputeError.hxx" #include "SMESH_ComputeError.hxx"
#include "SMESH_Block.hxx" #include "SMESH_Block.hxx"

View File

@ -244,6 +244,6 @@ bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
bool StdMeshers_LocalLength::SetParametersByDefaults(const TDefaults& dflts, bool StdMeshers_LocalLength::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/) const SMESH_Mesh* /*theMesh*/)
{ {
return bool( _length = dflts._elemLength ); return ( _length = dflts._elemLength );
} }

View File

@ -195,6 +195,6 @@ bool StdMeshers_MaxElementArea::SetParametersByMesh(const SMESH_Mesh* theMesh,
bool StdMeshers_MaxElementArea::SetParametersByDefaults(const TDefaults& dflts, bool StdMeshers_MaxElementArea::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/) const SMESH_Mesh* /*theMesh*/)
{ {
return bool( _maxArea = dflts._elemLength*dflts._elemLength ); return ( _maxArea = dflts._elemLength*dflts._elemLength );
} }

View File

@ -206,6 +206,6 @@ bool StdMeshers_MaxElementVolume::SetParametersByMesh(const SMESH_Mesh* theMes
bool StdMeshers_MaxElementVolume::SetParametersByDefaults(const TDefaults& dflts, bool StdMeshers_MaxElementVolume::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/) const SMESH_Mesh* /*theMesh*/)
{ {
return bool( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength ); return ( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
} }

View File

@ -237,6 +237,6 @@ bool StdMeshers_MaxLength::SetParametersByDefaults(const TDefaults& dflts,
//_preestimation = ( dflts._elemLength > 0.); //_preestimation = ( dflts._elemLength > 0.);
if ( dflts._elemLength > 0. ) if ( dflts._elemLength > 0. )
_preestimated = dflts._elemLength; _preestimated = dflts._elemLength;
return bool( _length = dflts._elemLength ); return ( _length = dflts._elemLength );
} }

View File

@ -171,7 +171,7 @@ bool StdMeshers_NumberOfLayers::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* theMesh) const SMESH_Mesh* theMesh)
{ {
if ( dflts._elemLength ) 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; return false;
} }

View File

@ -692,6 +692,6 @@ bool StdMeshers_NumberOfSegments::SetParametersByMesh(const SMESH_Mesh* theMes
bool StdMeshers_NumberOfSegments::SetParametersByDefaults(const TDefaults& dflts, bool StdMeshers_NumberOfSegments::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/) const SMESH_Mesh* /*theMesh*/)
{ {
return bool(_numberOfSegments = dflts._nbSegments ); return (_numberOfSegments = dflts._nbSegments );
} }

View File

@ -207,6 +207,6 @@ bool StdMeshers_StartEndLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
bool StdMeshers_StartEndLength::SetParametersByDefaults(const TDefaults& dflts, bool StdMeshers_StartEndLength::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/) const SMESH_Mesh* /*theMesh*/)
{ {
return bool(_begLength = _endLength = dflts._elemLength ); return (_begLength = _endLength = dflts._elemLength );
} }