From d9e37798719846dd6ea7f25fcc4eb053db2c2efe Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Fri, 9 Sep 2005 07:05:32 +0000 Subject: http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=335 --- cpp/demo/Ice/nested/Client.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'cpp/demo/Ice/nested/Client.cpp') diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp index f9c7d8cf2f6..38f419b9e6e 100644 --- a/cpp/demo/Ice/nested/Client.cpp +++ b/cpp/demo/Ice/nested/Client.cpp @@ -7,14 +7,13 @@ // // ********************************************************************** -#include #include +#include using namespace std; -using namespace Ice; using namespace Demo; -class NestedClient : public Application +class NestedClient : public Ice::Application { public: @@ -31,7 +30,7 @@ main(int argc, char* argv[]) int NestedClient::run(int argc, char* argv[]) { - PropertiesPtr properties = communicator()->getProperties(); + Ice::PropertiesPtr properties = communicator()->getProperties(); const char* proxyProperty = "Nested.Client.NestedServer"; std::string proxy = properties->getProperty(proxyProperty); if(proxy.empty()) @@ -40,7 +39,7 @@ NestedClient::run(int argc, char* argv[]) return EXIT_FAILURE; } - ObjectPrx base = communicator()->stringToProxy(proxy); + Ice::ObjectPrx base = communicator()->stringToProxy(proxy); NestedPrx nested = NestedPrx::checkedCast(base); if(!nested) { @@ -48,7 +47,7 @@ NestedClient::run(int argc, char* argv[]) return EXIT_FAILURE; } - ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Nested.Client"); + Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Nested.Client"); NestedPrx self = NestedPrx::uncheckedCast(adapter->createProxy(Ice::stringToIdentity("nestedClient"))); adapter->add(new NestedI(self), Ice::stringToIdentity("nestedClient")); adapter->activate(); @@ -72,7 +71,7 @@ NestedClient::run(int argc, char* argv[]) nested->nestedCall(level, self); } } - catch(const Exception& ex) + catch(const Ice::Exception& ex) { cerr << ex << endl; } -- cgit v1.2.3