From 8596170114a8a248330b7b814082f74117d885aa Mon Sep 17 00:00:00 2001 From: caremoli Date: Mon, 3 May 2010 09:15:07 +0000 Subject: [PATCH] CCAR: add std:: to string in MPIContainer --- src/MPIContainer/MPIContainer_i.cxx | 8 ++++---- src/MPIContainer/MPIObject_i.cxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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]; -- 2.39.2