summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index b39a11ac5ac..af045cef957 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -34,17 +34,8 @@ main(int argc, char* argv[])
int
HelloClient::run(int argc, char* argv[])
{
- Ice::PropertiesPtr properties = communicator()->getProperties();
- const char* proxyProperty = "Hello.Proxy";
- string proxy = properties->getProperty(proxyProperty);
- if(proxy.empty())
- {
- cerr << argv[0] << ": property `" << proxyProperty << "' not set" << endl;
- return EXIT_FAILURE;
- }
-
HelloPrx twoway = HelloPrx::checkedCast(
- communicator()->stringToProxy(proxy)->ice_twoway()->ice_timeout(-1)->ice_secure(false));
+ communicator()->propertyToProxy("Hello.Proxy")->ice_twoway()->ice_timeout(-1)->ice_secure(false));
if(!twoway)
{
cerr << argv[0] << ": invalid proxy" << endl;