mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 12:00:33 +05:00
Compatibility with gcc 4.1 (centos 5)
This commit is contained in:
parent
abdbef3f20
commit
a29849f24b
@ -376,17 +376,17 @@ namespace {
|
|||||||
if ( arg.Search( "SMESH.PointStruct" ) == 1 ||
|
if ( arg.Search( "SMESH.PointStruct" ) == 1 ||
|
||||||
arg.Search( "SMESH.DirStruct" ) == 1 )
|
arg.Search( "SMESH.DirStruct" ) == 1 )
|
||||||
{
|
{
|
||||||
_pyCommand workCmd( arg );
|
Handle(_pyCommand) workCmd = new _pyCommand( arg );
|
||||||
if ( workCmd.GetNbArgs() == 1 ) // SMESH.DirStruct( SMESH.PointStruct(x,y,z))
|
if ( workCmd->GetNbArgs() == 1 ) // SMESH.DirStruct( SMESH.PointStruct(x,y,z))
|
||||||
{
|
{
|
||||||
workCmd = _pyCommand( workCmd.GetArg( 1 ));
|
workCmd = new _pyCommand( workCmd->GetArg( 1 ) );
|
||||||
}
|
}
|
||||||
if ( workCmd.GetNbArgs() == 3 ) // SMESH.PointStruct(x,y,z)
|
if ( workCmd->GetNbArgs() == 3 ) // SMESH.PointStruct(x,y,z)
|
||||||
{
|
{
|
||||||
_AString newArg = "[ ";
|
_AString newArg = "[ ";
|
||||||
newArg += ( workCmd.GetArg( 1 ) + ", " +
|
newArg += ( workCmd->GetArg( 1 ) + ", " +
|
||||||
workCmd.GetArg( 2 ) + ", " +
|
workCmd->GetArg( 2 ) + ", " +
|
||||||
workCmd.GetArg( 3 ) + " ]");
|
workCmd->GetArg( 3 ) + " ]");
|
||||||
theCommand->SetArg( i, newArg );
|
theCommand->SetArg( i, newArg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user