summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/RunParser.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-12 02:46:32 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-12 02:46:32 +0000
commit759f7f34281a2c3d406ce93e52e63272a9d4beba (patch)
tree491339afc3ba74316d9d9019318836ffb6621ce8 /cpp/demo/Freeze/library/RunParser.cpp
parentbug fix to the icepack hello demo. (diff)
downloadice-759f7f34281a2c3d406ce93e52e63272a9d4beba.tar.bz2
ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.tar.xz
ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=335
Diffstat (limited to 'cpp/demo/Freeze/library/RunParser.cpp')
-rw-r--r--cpp/demo/Freeze/library/RunParser.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/demo/Freeze/library/RunParser.cpp b/cpp/demo/Freeze/library/RunParser.cpp
index eed07833b58..b71a188d852 100644
--- a/cpp/demo/Freeze/library/RunParser.cpp
+++ b/cpp/demo/Freeze/library/RunParser.cpp
@@ -7,7 +7,6 @@
//
// **********************************************************************
-#include <Ice/Ice.h>
#include <Parser.h>
using namespace std;
@@ -100,15 +99,14 @@ runParser(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
return EXIT_FAILURE;
}
- Ice::ObjectPrx base = communicator->stringToProxy(proxy);
- LibraryPrx phoneBook = LibraryPrx::checkedCast(base);
+ LibraryPrx phoneBook = LibraryPrx::checkedCast(communicator->stringToProxy(proxy));
if(!phoneBook)
{
cerr << argv[0] << ": invalid proxy" << endl;
return EXIT_FAILURE;
}
- ParserPtr p = Parser::createParser(communicator, phoneBook);
+ ParserPtr p = Parser::createParser(phoneBook);
int status = EXIT_SUCCESS;
if(argc < 2) // No files given