diff options
Diffstat (limited to 'cpp/demo/Freeze/library/RunParser.cpp')
-rw-r--r-- | cpp/demo/Freeze/library/RunParser.cpp | 6 |
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 |