diff options
author | Marc Laukien <marc@zeroc.com> | 2002-09-29 17:08:25 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-09-29 17:08:25 +0000 |
commit | 7459a281dc81f573246d99b0f863ef0065e4e6ad (patch) | |
tree | 2c14f30e3e3c8f40efa795631427a6a795b34d65 /cpp/src/slice2cpp | |
parent | minor changes for gcc 3.2 (diff) | |
download | ice-7459a281dc81f573246d99b0f863ef0065e4e6ad.tar.bz2 ice-7459a281dc81f573246d99b0f863ef0065e4e6ad.tar.xz ice-7459a281dc81f573246d99b0f863ef0065e4e6ad.zip |
lots and lots of fixes
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 3d63d543a39..b9a43894ccb 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1737,16 +1737,13 @@ Slice::Gen::DelegateDVisitor::visitOperation(const OperationPtr& p) C << sb; C << nl << "::IceInternal::Direct __direct(__current);"; string thisPointer = fixKwd(cl->scoped()) + "*"; - C << nl << thisPointer << " __servant = dynamic_cast< " - << thisPointer << ">(__direct.facetServant().get());"; + C << nl << thisPointer << " __servant = dynamic_cast< " << thisPointer << ">(__direct.facetServant().get());"; C << nl << "if(!__servant)"; C << sb; C << nl << "::Ice::OperationNotExistException __opEx(__FILE__, __LINE__);"; C << nl << "__opEx.operation = __current.operation;"; C << nl << "throw __opEx;"; C << eb; - C << nl << "try"; - C << sb; C << nl; if(ret) { @@ -1758,30 +1755,6 @@ Slice::Gen::DelegateDVisitor::visitOperation(const OperationPtr& p) C << nl << "return;"; } C << eb; - ExceptionList throws = p->throws(); - throws.sort(); - throws.unique(); - ExceptionList::const_iterator r; - for(r = throws.begin(); r != throws.end(); ++r) - { - C << nl << "catch(const " << fixKwd((*r)->scoped()) << "&)"; - C << sb; - C << nl << "throw;"; - C << eb; - } - C << nl << "catch(const ::Ice::UserException&)"; - C << sb; - C << nl << "throw ::Ice::UnknownUserException(__FILE__, __LINE__);"; - C << eb; - C << nl << "catch(const ::Ice::LocalException&)"; - C << sb; - C << nl << "throw;"; - C << eb; - C << nl << "catch(...)"; - C << sb; - C << nl << "throw ::Ice::UnknownException(__FILE__, __LINE__);"; - C << eb; - C << eb; C << eb; } |