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/framework/configuration | |
parent | 5c867b59668dd9144cab863c9e7593c85fc73609 (diff) |
catch by const reference
Diffstat (limited to 'sd/source/ui/framework/configuration')
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx index 7c8141da4cab..67b3f8616721 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx @@ -116,14 +116,14 @@ void ConfigurationControllerBroadcaster::NotifyListeners ( aEvent.UserData = iListener->maUserData; iListener->mxListener->notifyConfigurationChange(aEvent); } - catch (lang::DisposedException& rException) + catch (const lang::DisposedException& rException) { // When the exception comes from the listener itself then // unregister it. if (rException.Context == iListener->mxListener) RemoveListener(iListener->mxListener); } - catch(RuntimeException&) + catch (const RuntimeException&) { DBG_UNHANDLED_EXCEPTION(); } @@ -172,7 +172,7 @@ void ConfigurationControllerBroadcaster::NotifyListeners ( { NotifyListeners(aEvent); } - catch (lang::DisposedException) + catch (const lang::DisposedException&) { } } @@ -211,7 +211,7 @@ void ConfigurationControllerBroadcaster::DisposeAndClear (void) RemoveListener(iMap->second.front().mxListener); xListener->disposing(aEvent); } - catch (RuntimeException&) + catch (const RuntimeException&) { DBG_UNHANDLED_EXCEPTION(); } |