diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-04-03 15:46:47 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-04-03 15:46:47 +0000 |
commit | 466e56835f2b9e40f60673edcb0555342b491e1e (patch) | |
tree | 0eef31dedfa7c2515cab3416e84f4909b4c4bc2e /cpp/src | |
parent | Fixed bug 922 (diff) | |
download | ice-466e56835f2b9e40f60673edcb0555342b491e1e.tar.bz2 ice-466e56835f2b9e40f60673edcb0555342b491e1e.tar.xz ice-466e56835f2b9e40f60673edcb0555342b491e1e.zip |
Fixed warnings
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index ef613e541a1..f5800f80dd5 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -94,11 +94,9 @@ Client::run(int argc, char* argv[]) if(opts.isSet("s") || opts.isSet("server")) { - ObjectAdapterPtr adapter = - communicator()->createObjectAdapterWithEndpoints("FileParser", "tcp -h localhost"); + ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints("FileParser", "tcp -h localhost"); adapter->activate(); - ObjectPrx proxy = adapter-> - add(new FileParserI, Ice::stringToIdentity("FileParser")); + ObjectPrx proxy = adapter->add(new FileParserI, Ice::stringToIdentity("FileParser")); cout << proxy << endl; communicator()->waitForShutdown(); @@ -168,6 +166,13 @@ Client::run(int argc, char* argv[]) Ice::SliceChecksumDict serverChecksums = admin->getSliceChecksums(); Ice::SliceChecksumDict localChecksums = Ice::sliceChecksums(); + + // + // The following slice types are only used by the admin CLI. + // + localChecksums.erase("::IceGrid::FileParser"); + localChecksums.erase("::IceGrid::ParseException"); + for(Ice::SliceChecksumDict::const_iterator q = localChecksums.begin(); q != localChecksums.end(); ++q) { Ice::SliceChecksumDict::const_iterator r = serverChecksums.find(q->first); |