From 60f51d6688e98ed87d24e6e9d1f179ca5db8f07a Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Mon, 17 Sep 2001 22:04:17 +0000 Subject: tons of fixes --- cpp/src/IcePack/Client.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cpp/src/IcePack/Client.cpp') diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp index c4853e153d1..79053fcdcee 100644 --- a/cpp/src/IcePack/Client.cpp +++ b/cpp/src/IcePack/Client.cpp @@ -122,16 +122,16 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator) } PropertiesPtr properties = communicator->getProperties(); - - string adminEndpoints = properties->getProperty("Ice.Adapter.Admin.Endpoints"); - if (adminEndpoints.length() == 0) + const char* adminEndpointsProperty = "Ice.Adapter.Admin.Endpoints"; + string adminEndpoints = properties->getProperty(adminEndpointsProperty); + if (adminEndpoints.empty()) { - cerr << argv[0] << ": `Ice.Adapter.Admin.Endpoints' property is not set" << endl; + cerr << argv[0] << ": property `" << adminEndpointsProperty << "' is not set" << endl; return EXIT_FAILURE; } - Ice::ObjectPrx adminBase = communicator->stringToProxy("admin:" + adminEndpoints); - AdminPrx admin = AdminPrx::checkedCast(adminBase); + Ice::ObjectPrx base = communicator->stringToProxy("admin:" + adminEndpoints); + AdminPrx admin = AdminPrx::checkedCast(base); if (!admin) { cerr << argv[0] << ": `" << adminEndpoints << "' are no valid administrative endpoints" << endl; -- cgit v1.2.3