From: smh Date: Thu, 9 Jun 2005 04:48:24 +0000 (+0000) Subject: Compiler error on gcc 3.4.1 corrected: cannot use SALOME_ListIO() where const SALOME_... X-Git-Tag: T3_0_0_a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cca53b9163eee6588f78ba14dc33d3d36b60ad5a;p=modules%2Fsmesh.git Compiler error on gcc 3.4.1 corrected: cannot use SALOME_ListIO() where const SALOME_ListIO& argument expected --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 4b63550e0..798a19a87 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -793,7 +793,8 @@ namespace{ aStudyBuilder->CommitCommand(); /* Clear any previous selection */ - aSel->setSelectedObjects( SALOME_ListIO() ); + SALOME_ListIO l1; + aSel->setSelectedObjects( l1 ); SMESHGUI::GetSMESHGUI()->updateObjBrowser(); } @@ -1204,7 +1205,8 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) } } } - aSel->setSelectedObjects( SALOME_ListIO() ); + SALOME_ListIO l1; + aSel->setSelectedObjects( l1 ); break; } @@ -1937,7 +1939,8 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) Handle(SALOME_InteractiveObject) IObject = It.Value(); SMESH::RemoveHypothesisOrAlgorithmOnMesh(IObject); } - aSel->setSelectedObjects( SALOME_ListIO() ); + SALOME_ListIO l1; + aSel->setSelectedObjects( l1 ); updateObjBrowser(); break; }