summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/RunParser.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-11-24 17:29:58 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-11-24 17:29:58 +0000
commit1126cea5189d035934f98822078f2ae23d9739ec (patch)
tree759430bdf201db72abddcd9bb83bed6fb034a6d2 /cpp/demo/Freeze/library/RunParser.cpp
parentCode cleanup (diff)
downloadice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2
ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz
ice-1126cea5189d035934f98822078f2ae23d9739ec.zip
Added propertyToProxy
Diffstat (limited to 'cpp/demo/Freeze/library/RunParser.cpp')
-rw-r--r--cpp/demo/Freeze/library/RunParser.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/demo/Freeze/library/RunParser.cpp b/cpp/demo/Freeze/library/RunParser.cpp
index 296f6a4ec7e..4a84e286e74 100644
--- a/cpp/demo/Freeze/library/RunParser.cpp
+++ b/cpp/demo/Freeze/library/RunParser.cpp
@@ -91,16 +91,7 @@ runParser(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
return EXIT_FAILURE;
}
- Ice::PropertiesPtr properties = communicator->getProperties();
- const char* proxyProperty = "Library.Proxy";
- string proxy = properties->getProperty(proxyProperty);
- if(proxy.empty())
- {
- cerr << argv[0] << ": property `" << proxyProperty << "' not set" << endl;
- return EXIT_FAILURE;
- }
-
- LibraryPrx phoneBook = LibraryPrx::checkedCast(communicator->stringToProxy(proxy));
+ LibraryPrx phoneBook = LibraryPrx::checkedCast(communicator->propertyToProxy("Library.Proxy"));
if(!phoneBook)
{
cerr << argv[0] << ": invalid proxy" << endl;