]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: add std:: to string in MPIContainer
authorcaremoli <caremoli>
Mon, 3 May 2010 09:15:07 +0000 (09:15 +0000)
committercaremoli <caremoli>
Mon, 3 May 2010 09:15:07 +0000 (09:15 +0000)
src/MPIContainer/MPIContainer_i.cxx
src/MPIContainer/MPIObject_i.cxx

index e57983b4c6eca84d282beed78b8f123f074bde43..a4b8acdc4e7129db0f2dd3c797ddd045d3751dc1 100644 (file)
@@ -146,7 +146,7 @@ bool Engines_MPIContainer_i::Lload_component_Library(const char* componentName)
 
   // --- try dlopen C++ component
 
-  std::string impl_name = string ("lib") + aCompName + string("Engine.so");
+  std::string impl_name = std::string ("lib") + aCompName + std::string("Engine.so");
   
   _numInstanceMutex.lock(); // lock to be alone 
   // (see decInstanceCnt, finalize_removal))
@@ -283,7 +283,7 @@ Engines_MPIContainer_i::Lcreate_component_instance( const char* genericRegisterN
     const char *ior;
     const char *error;
     PyArg_ParseTuple(result,"ss", &ior, &error);
-    string iors = ior;
+    std::string iors = ior;
     SCRUTE(iors);
     Py_RELEASE_NEW_THREAD;
   
@@ -314,7 +314,7 @@ Engines_MPIContainer_i::Lcreate_component_instance( const char* genericRegisterN
 }
 
 Engines::Component_ptr
-Engines_MPIContainer_i::createMPIInstance(string genericRegisterName,
+Engines_MPIContainer_i::createMPIInstance(std::string genericRegisterName,
                                           void *handle,
                                           int studyId)
 {
@@ -538,7 +538,7 @@ void Engines_MPIContainer_i::remove_impl(Engines::Component_ptr component_i)
   }
 
   ASSERT(! CORBA::is_nil(component_i));
-  string instanceName = component_i->instanceName() ;
+  std::string instanceName = component_i->instanceName() ;
   MESSAGE("[" << _numproc << "] unload component " << instanceName);
   _numInstanceMutex.lock() ; // lock on the remove on handle_map
   _listInstances_map.erase(instanceName);
index bb269b4708475bf956a1a5b92629d5ca5a096024..fa590761297b1323aba7b4676acdf949083687a2 100644 (file)
@@ -137,7 +137,7 @@ void MPIObject_i::BCastIOR(CORBA::ORB_ptr orb, Engines::MPIObject_ptr pobj, bool
 }
 
 #ifdef HAVE_MPI2
-void MPIObject_i::remoteMPI2Connect(string service)
+void MPIObject_i::remoteMPI2Connect(std::string service)
 {
   int i;
   char port_name[MPI_MAX_PORT_NAME];