From 5cbd9a7be2ee05499bd730f2e7bd8b35ce881217 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 19 Jun 2011 22:37:12 +0100 Subject: catch by const reference --- .../configuration/ConfigurationControllerBroadcaster.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/source/ui/framework/configuration') 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(); } -- cgit