diff options
author | Jose <jose@zeroc.com> | 2016-02-29 21:26:46 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-02-29 21:26:46 +0100 |
commit | c1883eb6776a6eacd1cdcfc8d1e5a4f5396105f2 (patch) | |
tree | 1ea84098d666eeac752193be52e5f34b360c3bd7 /cpp/src/Glacier2Lib/SessionHelper.cpp | |
parent | Merge remote-tracking branch 'origin/3.6' (diff) | |
download | ice-c1883eb6776a6eacd1cdcfc8d1e5a4f5396105f2.tar.bz2 ice-c1883eb6776a6eacd1cdcfc8d1e5a4f5396105f2.tar.xz ice-c1883eb6776a6eacd1cdcfc8d1e5a4f5396105f2.zip |
Ice::identityToString & Ice::stringToIdentity usage
Diffstat (limited to 'cpp/src/Glacier2Lib/SessionHelper.cpp')
-rw-r--r-- | cpp/src/Glacier2Lib/SessionHelper.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/cpp/src/Glacier2Lib/SessionHelper.cpp b/cpp/src/Glacier2Lib/SessionHelper.cpp index 1b1a630d3af..1a09ed5fd9f 100644 --- a/cpp/src/Glacier2Lib/SessionHelper.cpp +++ b/cpp/src/Glacier2Lib/SessionHelper.cpp @@ -1210,17 +1210,7 @@ string Glacier2::SessionFactoryHelper::createProxyStr(const Ice::Identity& ident) { ostringstream os; - os << "\""; - // - // TODO replace with identityToString, we cannot use the Communicator::identityToString - // current implementation because we need to do that before the communicator has been - // initialized. - // - if(!ident.category.empty()) - { - os << ident.category << "/"; - } - os << ident.name << "\":" << _protocol << " -p " << getPortInternal() << " -h \"" << _routerHost << "\""; + os << "\"" << Ice::identityToString(ident) << "\":" << _protocol << " -p " << getPortInternal() << " -h \"" << _routerHost << "\""; if(_timeout > 0) { os << " -t " << _timeout; |