diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-02-28 17:17:24 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-02-28 17:17:24 +0000 |
commit | dbd265842220959df5b05d56da78b9ec0ecfcc2c (patch) | |
tree | 458effe03606933bb162793eb5b48f5f7a2b794f /cpp/src/IceGrid/Client.cpp | |
parent | Added (diff) | |
download | ice-dbd265842220959df5b05d56da78b9ec0ecfcc2c.tar.bz2 ice-dbd265842220959df5b05d56da78b9ec0ecfcc2c.tar.xz ice-dbd265842220959df5b05d56da78b9ec0ecfcc2c.zip |
VC6 compiler fix
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index 9a4a64730c5..0a0be250765 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -21,7 +21,7 @@ #include <fstream> using namespace std; -using namespace Ice; +//using namespace Ice; // COMPILERFIX: VC6 reports compilation error because of ambiguous Locator symbol. using namespace IceGrid; class Client; @@ -284,9 +284,10 @@ Client::run(int argc, char* argv[]) if(opts.isSet("server")) { - ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints("FileParser", "tcp -h localhost"); + Ice::ObjectAdapterPtr adapter = + communicator()->createObjectAdapterWithEndpoints("FileParser", "tcp -h localhost"); adapter->activate(); - ObjectPrx proxy = adapter->add(new FileParserI, communicator()->stringToIdentity("FileParser")); + Ice::ObjectPrx proxy = adapter->add(new FileParserI, communicator()->stringToIdentity("FileParser")); cout << proxy << endl; communicator()->waitForShutdown(); @@ -431,7 +432,7 @@ Client::run(int argc, char* argv[]) } else if(communicator()->getDefaultLocator()) { - Identity registryId; + Ice::Identity registryId; registryId.category = communicator()->getDefaultLocator()->ice_getIdentity().category; registryId.name = "Registry"; if(!replica.empty() && replica != "Master") |