diff options
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; |