diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
commit | 1126cea5189d035934f98822078f2ae23d9739ec (patch) | |
tree | 759430bdf201db72abddcd9bb83bed6fb034a6d2 /cpp/demo/Ice/async/Publisher.cpp | |
parent | Code cleanup (diff) | |
download | ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2 ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz ice-1126cea5189d035934f98822078f2ae23d9739ec.zip |
Added propertyToProxy
Diffstat (limited to 'cpp/demo/Ice/async/Publisher.cpp')
-rw-r--r-- | cpp/demo/Ice/async/Publisher.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/demo/Ice/async/Publisher.cpp b/cpp/demo/Ice/async/Publisher.cpp index ca9e3fc6e8b..875144aa826 100644 --- a/cpp/demo/Ice/async/Publisher.cpp +++ b/cpp/demo/Ice/async/Publisher.cpp @@ -35,16 +35,7 @@ main(int argc, char* argv[]) int QueuePublisher::run(int argc, char* argv[]) { - Ice::PropertiesPtr properties = communicator()->getProperties(); - const char* proxyProperty = "Queue.Proxy"; - string proxy = properties->getProperty(proxyProperty); - if(proxy.empty()) - { - cerr << argv[0] << ": property `" << proxyProperty << "' not set" << endl; - return EXIT_FAILURE; - } - - QueuePrx queue = QueuePrx::checkedCast(communicator()->stringToProxy(proxy)); + QueuePrx queue = QueuePrx::checkedCast(communicator()->propertyToProxy("Queue.Proxy")); if(!queue) { cerr << argv[0] << ": invalid proxy" << endl; |