mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-16 03:01:27 +05:00
fight warnings, c++17. additional corrections+++
This commit is contained in:
parent
242fecaab1
commit
9ce044f12e
@ -46,7 +46,7 @@ namespace SMESH
|
|||||||
{
|
{
|
||||||
GEOM::GEOM_Gen_var GetGEOMGen( GEOM::GEOM_Object_ptr go )
|
GEOM::GEOM_Gen_var GetGEOMGen( GEOM::GEOM_Object_ptr go )
|
||||||
{
|
{
|
||||||
GEOM::GEOM_Gen_ptr gen = GEOM::GEOM_Gen::_nil();;
|
GEOM::GEOM_Gen_ptr gen = GEOM::GEOM_Gen::_nil();
|
||||||
if ( !CORBA::is_nil( go ))
|
if ( !CORBA::is_nil( go ))
|
||||||
gen = go->GetGen();
|
gen = go->GetGen();
|
||||||
return gen;
|
return gen;
|
||||||
|
@ -950,7 +950,7 @@ Handle(_pyCommand) _pyGen::AddCommand( const TCollection_AsciiString& theCommand
|
|||||||
if ( -1 < iGeom && iGeom < nbTypes )
|
if ( -1 < iGeom && iGeom < nbTypes )
|
||||||
Threshold = SMESH + types[ iGeom ];
|
Threshold = SMESH + types[ iGeom ];
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
// is 'types' complete? (compilation failure mains that enum EntityType changed)
|
// is 'types' complete? (compilation failure means that enum EntityType changed)
|
||||||
int _asrt[( sizeof(types) / sizeof(const char*) == nbTypes ) ? 2 : -1 ]; _asrt[0]=_asrt[1]; // _asrt[1] may be used uninitialized => replace this with static_assert?
|
int _asrt[( sizeof(types) / sizeof(const char*) == nbTypes ) ? 2 : -1 ]; _asrt[0]=_asrt[1]; // _asrt[1] may be used uninitialized => replace this with static_assert?
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -295,7 +295,7 @@ GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine( bool isShaper )
|
|||||||
|
|
||||||
GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine( GEOM::GEOM_Object_ptr go )
|
GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine( GEOM::GEOM_Object_ptr go )
|
||||||
{
|
{
|
||||||
GEOM::GEOM_Gen_ptr gen = GEOM::GEOM_Gen::_nil();;
|
GEOM::GEOM_Gen_ptr gen = GEOM::GEOM_Gen::_nil();
|
||||||
if ( !CORBA::is_nil( go ))
|
if ( !CORBA::is_nil( go ))
|
||||||
gen = go->GetGen();
|
gen = go->GetGen();
|
||||||
return gen;
|
return gen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user