summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/throughput/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/throughput/Client.cpp')
-rw-r--r--cpp/demo/Ice/throughput/Client.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/demo/Ice/throughput/Client.cpp b/cpp/demo/Ice/throughput/Client.cpp
index 2f5c959500f..ffdcb15fa4e 100644
--- a/cpp/demo/Ice/throughput/Client.cpp
+++ b/cpp/demo/Ice/throughput/Client.cpp
@@ -36,16 +36,7 @@ main(int argc, char* argv[])
int
ThroughputClient::run(int argc, char* argv[])
{
- Ice::PropertiesPtr properties = communicator()->getProperties();
- const char* proxyProperty = "Throughput.Throughput";
- std::string proxy = properties->getProperty(proxyProperty);
- if(proxy.empty())
- {
- cerr << argv[0] << ": property `" << proxyProperty << "' not set" << endl;
- return EXIT_FAILURE;
- }
-
- Ice::ObjectPrx base = communicator()->stringToProxy(proxy);
+ Ice::ObjectPrx base = communicator()->propertyToProxy("Throughput.Throughput");
ThroughputPrx throughput = ThroughputPrx::checkedCast(base);
if(!throughput)
{