From: caremoli Date: Mon, 3 May 2010 09:15:07 +0000 (+0000) Subject: CCAR: add std:: to string in MPIContainer X-Git-Tag: V5_1_4rc1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8596170114a8a248330b7b814082f74117d885aa;p=modules%2Fkernel.git CCAR: add std:: to string in MPIContainer --- diff --git a/src/MPIContainer/MPIContainer_i.cxx b/src/MPIContainer/MPIContainer_i.cxx index e57983b4c..a4b8acdc4 100644 --- a/src/MPIContainer/MPIContainer_i.cxx +++ b/src/MPIContainer/MPIContainer_i.cxx @@ -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); diff --git a/src/MPIContainer/MPIObject_i.cxx b/src/MPIContainer/MPIObject_i.cxx index bb269b470..fa5907612 100644 --- a/src/MPIContainer/MPIObject_i.cxx +++ b/src/MPIContainer/MPIObject_i.cxx @@ -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];