summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/counter/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceStorm/counter/Server.cpp')
-rw-r--r--cpp/demo/IceStorm/counter/Server.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/cpp/demo/IceStorm/counter/Server.cpp b/cpp/demo/IceStorm/counter/Server.cpp
index cdf5996e313..b58d55e2ba4 100644
--- a/cpp/demo/IceStorm/counter/Server.cpp
+++ b/cpp/demo/IceStorm/counter/Server.cpp
@@ -42,15 +42,8 @@ Server::run(int argc, char* argv[])
Ice::PropertiesPtr properties = communicator()->getProperties();
- const string proxyProperty = "IceStorm.TopicManager.Proxy";
- string proxy = properties->getProperty(proxyProperty);
- if(proxy.empty())
- {
- cerr << appName() << ": property `" << proxyProperty << "' not set" << endl;
- return EXIT_FAILURE;
- }
-
- IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(communicator()->stringToProxy(proxy));
+ IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(
+ communicator()->propertyToProxy("TopicManager.Proxy"));
if(!manager)
{
cerr << appName() << ": invalid proxy" << endl;