summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r--cpp/src/IcePatch/Client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp
index 4af72481f07..2cb7144c3b3 100644
--- a/cpp/src/IcePatch/Client.cpp
+++ b/cpp/src/IcePatch/Client.cpp
@@ -10,7 +10,7 @@
#include <Ice/Application.h>
#include <IcePatch/NodeDescFactory.h>
-#include <IcePatch/NodeUtil.h>
+#include <IcePatch/Util.h>
using namespace std;
using namespace Ice;
@@ -104,7 +104,8 @@ IcePatch::Client::run(int argc, char* argv[])
//
// Display node structure.
//
- ObjectPrx topObj = communicator()->stringToProxy("IcePatch/.:" + endpoints);
+ Identity identity = pathToIdentity(".");
+ ObjectPrx topObj = communicator()->stringToProxy(identityToString(identity) + ':' + endpoints);
NodePrx top = NodePrx::checkedCast(topObj);
printNodeDesc(top->describe());
}