From 1126cea5189d035934f98822078f2ae23d9739ec Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Fri, 24 Nov 2006 17:29:58 +0000 Subject: Added propertyToProxy --- cpp/demo/Ice/nested/Client.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cpp/demo/Ice/nested/Client.cpp') diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp index 3bb6f8e2533..53d9ae26547 100644 --- a/cpp/demo/Ice/nested/Client.cpp +++ b/cpp/demo/Ice/nested/Client.cpp @@ -30,16 +30,7 @@ main(int argc, char* argv[]) int NestedClient::run(int argc, char* argv[]) { - Ice::PropertiesPtr properties = communicator()->getProperties(); - const char* proxyProperty = "Nested.Client.NestedServer"; - std::string proxy = properties->getProperty(proxyProperty); - if(proxy.empty()) - { - cerr << appName() << ": property `" << proxyProperty << "' not set" << endl; - return EXIT_FAILURE; - } - - NestedPrx nested = NestedPrx::checkedCast(communicator()->stringToProxy(proxy)); + NestedPrx nested = NestedPrx::checkedCast(communicator()->propertyToProxy("Nested.Client.NestedServer")); if(!nested) { cerr << appName() << ": invalid proxy" << endl; -- cgit v1.2.3