From 5dcdca9e0bee1d8f11e4fd1bda4dd9aa317870b3 Mon Sep 17 00:00:00 2001 From: ribes Date: Thu, 23 Apr 2009 09:53:52 +0000 Subject: [PATCH] Code more clear --- src/ParallelContainer/SALOME_ParallelContainerNodeDummy.cxx | 6 +++--- src/ParallelContainer/SALOME_ParallelContainerNodeMpi.cxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ParallelContainer/SALOME_ParallelContainerNodeDummy.cxx b/src/ParallelContainer/SALOME_ParallelContainerNodeDummy.cxx index 0c7d319a6..e33ba9833 100644 --- a/src/ParallelContainer/SALOME_ParallelContainerNodeDummy.cxx +++ b/src/ParallelContainer/SALOME_ParallelContainerNodeDummy.cxx @@ -128,9 +128,9 @@ int main(int argc, char* argv[]) if(argc > 1) { containerName = argv[1]; } - std::string hostname(""); + std::string proxy_hostname(""); if(argc > 3) { - hostname = argv[3]; + proxy_hostname = argv[3]; } int myid = 0; if(argc > 4) @@ -151,7 +151,7 @@ int main(int argc, char* argv[]) SALOME_NamingService * ns = new SALOME_NamingService(orb); // Get the proxy string proxyNameInNS = ns->BuildContainerNameForNS(containerName.c_str(), - hostname.c_str()); + proxy_hostname.c_str()); obj = ns->Resolve(proxyNameInNS.c_str()); char * proxy_ior = orb->object_to_string(obj); diff --git a/src/ParallelContainer/SALOME_ParallelContainerNodeMpi.cxx b/src/ParallelContainer/SALOME_ParallelContainerNodeMpi.cxx index d72d0fe74..5dd6710d0 100644 --- a/src/ParallelContainer/SALOME_ParallelContainerNodeMpi.cxx +++ b/src/ParallelContainer/SALOME_ParallelContainerNodeMpi.cxx @@ -158,9 +158,9 @@ int main(int argc, char* argv[]) std::string containerName(""); containerName = argv[1]; - std::string hostname(""); + std::string proxy_hostname(""); if(argc > 3) { - hostname = argv[3]; + proxy_hostname = argv[3]; } try { @@ -178,7 +178,7 @@ int main(int argc, char* argv[]) SALOME_NamingService * ns = new SALOME_NamingService(CORBA::ORB::_duplicate(orb)); // On récupère le proxy string proxyNameInNS = ns->BuildContainerNameForNS(containerName.c_str(), - hostname.c_str()); + proxy_hostname.c_str()); obj = ns->Resolve(proxyNameInNS.c_str()); char * proxy_ior = orb->object_to_string(obj); -- 2.39.2