From 5c0f21c7fe9e334838b6ef8f905c4390033425a4 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Tue, 7 Sep 2004 03:58:49 +0000 Subject: Change made for r1.227 did not correctly deal with Slice identifiers that are C++ keywords. --- cpp/src/slice2cpp/Gen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 5d1e2a231c2..85710132ab1 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1612,7 +1612,7 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p) for(ExceptionList::const_iterator i = throws.begin(); i != throws.end(); ++i) { string scoped = (*i)->scoped(); - C << nl << "catch(const " << (*i)->scoped() << "&)"; + C << nl << "catch(const " << fixKwd((*i)->scoped()) << "&)"; C << sb; C << nl << "throw;"; C << eb; @@ -3578,7 +3578,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) for(ExceptionList::const_iterator i = throws.begin(); i != throws.end(); ++i) { string scoped = (*i)->scoped(); - C << nl << "catch(const " << (*i)->scoped() << "& __ex)"; + C << nl << "catch(const " << fixKwd((*i)->scoped()) << "& __ex)"; C << sb; C << nl << "ice_exception(__ex);"; C << nl << "return;"; -- cgit v1.2.3