summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2Lib/SessionHelper.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-02-29 15:56:29 +0100
committerJose <jose@zeroc.com>2016-02-29 15:56:29 +0100
commit05f2548dc1b12b4b5afd3406af3bd899c17f85be (patch)
tree0bc0ae4845afa929e74f2f1fcb9ee20057b3240f /cpp/src/Glacier2Lib/SessionHelper.cpp
parentICE-6843 - Check for php-config in the path (diff)
downloadice-05f2548dc1b12b4b5afd3406af3bd899c17f85be.tar.bz2
ice-05f2548dc1b12b4b5afd3406af3bd899c17f85be.tar.xz
ice-05f2548dc1b12b4b5afd3406af3bd899c17f85be.zip
ICE-6952 - identityToString/stringToIdentity non member functions
Diffstat (limited to 'cpp/src/Glacier2Lib/SessionHelper.cpp')
-rw-r--r--cpp/src/Glacier2Lib/SessionHelper.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/cpp/src/Glacier2Lib/SessionHelper.cpp b/cpp/src/Glacier2Lib/SessionHelper.cpp
index 7ce2d2c3eb9..623e0a2a869 100644
--- a/cpp/src/Glacier2Lib/SessionHelper.cpp
+++ b/cpp/src/Glacier2Lib/SessionHelper.cpp
@@ -1162,17 +1162,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;