diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-19 22:37:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 11:01:38 +0100 |
commit | 5cbd9a7be2ee05499bd730f2e7bd8b35ce881217 (patch) | |
tree | 7c52e5d1a5324ae9ffe0e75dd525582ba30994d8 /sd/source/ui/unoidl/DrawController.cxx | |
parent | 5c867b59668dd9144cab863c9e7593c85fc73609 (diff) |
catch by const reference
Diffstat (limited to 'sd/source/ui/unoidl/DrawController.cxx')
-rw-r--r-- | sd/source/ui/unoidl/DrawController.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index 6b67bcead477..c76c325d0480 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -367,7 +367,7 @@ void SAL_CALL if (pListener != NULL) pListener->selectionChanged (rEvent); } - catch (RuntimeException aException) + catch (const RuntimeException&) { } } @@ -461,7 +461,7 @@ void DrawController::FireSelectionChangeListener() throw() if (pL != NULL) pL->selectionChanged( aEvent ); } - catch (RuntimeException aException) + catch (const RuntimeException&) { } } @@ -524,9 +524,8 @@ void DrawController::FireSwitchCurrentPage (SdPage* pNewCurrentPage) throw() mpCurrentPage.reset(pNewCurrentPage); } - catch( uno::Exception& e ) + catch (const uno::Exception&) { - (void)e; OSL_FAIL( (::rtl::OString("sd::SdUnoDrawView::FireSwitchCurrentPage(), " "exception caught: ") + @@ -549,7 +548,7 @@ void DrawController::FirePropertyChange ( { fire (&nHandle, &rNewValue, &rOldValue, 1, sal_False); } - catch (RuntimeException aException) + catch (const RuntimeException&) { // Ignore this exception. Exceptions should be handled in the // fire() function so that all listeners are called. This is @@ -808,7 +807,7 @@ sal_Bool DrawController::convertFastPropertyValue ( rOldValue = mxSubController->getFastPropertyValue(nHandle); bResult = (rOldValue != rConvertedValue); } - catch(beans::UnknownPropertyException aException) + catch (const beans::UnknownPropertyException&) { // The prperty is unknown and thus an illegal argument to this method. throw com::sun::star::lang::IllegalArgumentException(); @@ -883,7 +882,7 @@ void DrawController::ProvideFrameworkControllers (void) xContext, xController); } - catch (RuntimeException&) + catch (const RuntimeException&) { mxConfigurationController = NULL; mxModuleController = NULL; |