From 5c872d29b6223e23daea5b510a2bcb4d43fa08eb Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Sun, 14 Oct 2001 17:58:55 +0000 Subject: user exceptin factories --- cpp/src/slice2cpp/Gen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 731cc67f67e..e61c0f838d9 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1121,6 +1121,8 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p) paramsDecl += ')'; ExceptionList throws = p->throws(); + throws.sort(); + throws.unique(); H << sp << nl << "virtual " << retS << ' ' << name << params << ';'; C << sp << nl << retS << nl << "IceDelegateM" << scoped << paramsDecl; @@ -1824,6 +1826,8 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) if (!cl->isLocal()) { ExceptionList throws = p->throws(); + throws.sort(); + throws.unique(); H << nl << exp2 << "::IceInternal::DispatchStatus ___" << name << "(::IceInternal::Incoming&);"; C << sp; -- cgit v1.2.3