summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/callback/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/callback/Client.cpp')
-rw-r--r--cpp/demo/Ice/callback/Client.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/cpp/demo/Ice/callback/Client.cpp b/cpp/demo/Ice/callback/Client.cpp
index 62573c5ce50..8a6b237b415 100644
--- a/cpp/demo/Ice/callback/Client.cpp
+++ b/cpp/demo/Ice/callback/Client.cpp
@@ -44,17 +44,9 @@ main(int argc, char* argv[])
int
CallbackClient::run(int argc, char* argv[])
{
- Ice::PropertiesPtr properties = communicator()->getProperties();
- const char* proxyProperty = "Callback.Client.CallbackServer";
- std::string proxy = properties->getProperty(proxyProperty);
- if(proxy.empty())
- {
- cerr << appName() << ": property `" << proxyProperty << "' not set" << endl;
- return EXIT_FAILURE;
- }
-
CallbackSenderPrx twoway = CallbackSenderPrx::checkedCast(
- communicator()->stringToProxy(proxy)->ice_twoway()->ice_timeout(-1)->ice_secure(false));
+ communicator()->propertyToProxy("Callback.Client.CallbackServer")->
+ ice_twoway()->ice_timeout(-1)->ice_secure(false));
if(!twoway)
{
cerr << appName() << ": invalid proxy" << endl;