summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-02-28 17:17:24 +0000
committerBenoit Foucher <benoit@zeroc.com>2007-02-28 17:17:24 +0000
commitdbd265842220959df5b05d56da78b9ec0ecfcc2c (patch)
tree458effe03606933bb162793eb5b48f5f7a2b794f /cpp/src/IceGrid/Client.cpp
parentAdded (diff)
downloadice-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.cpp9
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")