From a29849f24b46408200e5a20a7a668752385992a8 Mon Sep 17 00:00:00 2001 From: inv Date: Thu, 30 May 2013 08:02:04 +0000 Subject: [PATCH] Compatibility with gcc 4.1 (centos 5) --- src/SMESH_I/SMESH_2smeshpy.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 179590e3f..2cf20378c 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -376,17 +376,17 @@ namespace { if ( arg.Search( "SMESH.PointStruct" ) == 1 || arg.Search( "SMESH.DirStruct" ) == 1 ) { - _pyCommand workCmd( arg ); - if ( workCmd.GetNbArgs() == 1 ) // SMESH.DirStruct( SMESH.PointStruct(x,y,z)) + Handle(_pyCommand) workCmd = new _pyCommand( arg ); + 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 = "[ "; - newArg += ( workCmd.GetArg( 1 ) + ", " + - workCmd.GetArg( 2 ) + ", " + - workCmd.GetArg( 3 ) + " ]"); + newArg += ( workCmd->GetArg( 1 ) + ", " + + workCmd->GetArg( 2 ) + ", " + + workCmd->GetArg( 3 ) + " ]"); theCommand->SetArg( i, newArg ); } } -- 2.39.2