Salome HOME
Rename Engines::Component to Engines::EngineComponent
[samples/sierpinsky.git] / src / SierpinskyGUI / SierpinskyGUI_RunDlg.cxx
index 15e129c09a514866612ddc2440e399af2d41322f..fe4824d9f086f7146e87279d910da0d4da47b492 100644 (file)
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
 
 ///////////////////////////////////////////////////////////
 // File    : SierpinskyGUI_RunDlg.cxx
 // Author  : Vadim SANDLER (OCN)
 // Created : 13/07/05
 ///////////////////////////////////////////////////////////
-//
+
 #include "SierpinskyGUI_RunDlg.h"
 #include "SierpinskyGUI.h"
 #include "SALOME_LifeCycleCORBA.hxx"
@@ -60,7 +59,7 @@ static RANDOMIZER_ORB::RANDOMIZER_var getRandomizerEngine()
   if( CORBA::is_nil( aGen ) ) {
     try{
       SALOME_LifeCycleCORBA aLCC(SalomeApp_Application::namingService());
-      Engines::Component_var aComponent = aLCC.FindOrLoad_Component("FactoryServerPy","RANDOMIZER");
+      Engines::EngineComponent_var aComponent = aLCC.FindOrLoad_Component("FactoryServerPy","RANDOMIZER");
       aGen = RANDOMIZER_ORB::RANDOMIZER::_narrow( aComponent );
     }
     catch (CORBA::Exception&){
@@ -82,7 +81,7 @@ static SIERPINSKY_ORB::SIERPINSKY_var getSierpinskyEngine()
   if( CORBA::is_nil( aGen ) ) {
     try{
       SALOME_LifeCycleCORBA aLCC(SalomeApp_Application::namingService());
-      Engines::Component_var aComponent = aLCC.FindOrLoad_Component("FactoryServer","SIERPINSKY");
+      Engines::EngineComponent_var aComponent = aLCC.FindOrLoad_Component("FactoryServer","SIERPINSKY");
       aGen = SIERPINSKY_ORB::SIERPINSKY::_narrow( aComponent );
     }
     catch (CORBA::Exception&){
@@ -104,7 +103,7 @@ static VISU::VISU_Gen_var getVisuEngine()
   if( CORBA::is_nil( aGen ) ) {
     try{
       SALOME_LifeCycleCORBA aLCC(SalomeApp_Application::namingService());
-      Engines::Component_var aComponent = aLCC.FindOrLoad_Component("FactoryServer","VISU");
+      Engines::EngineComponent_var aComponent = aLCC.FindOrLoad_Component("FactoryServer","VISU");
       aGen = VISU::VISU_Gen::_narrow( aComponent );
     }
     catch (CORBA::Exception&){