diff options
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 91397221f03..4c1dcbed7da 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -2294,7 +2294,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) } writeEndCode(C, outParams, p); C << eb; - C << nl << "catch(::Ice::Exception& ex)"; + C << nl << "catch(const ::Ice::Exception& ex)"; C << sb; C << nl << "Cpp11FnCallbackNC::__exception(__result, ex);"; C << nl << "return;"; @@ -4325,7 +4325,7 @@ Slice::Gen::AsyncCallbackTemplateVisitor::generateOperation(const OperationPtr& } writeEndCode(H, outParams, p); H << eb; - H << nl << "catch(::Ice::Exception& ex)"; + H << nl << "catch(const ::Ice::Exception& ex)"; H << sb; H << nl << "" << baseD << "::__exception(__result, ex);"; |