From 8cc98837d30d818fe3a2e4063798c7451044eb9c Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Sun, 25 Dec 2011 15:08:11 +0900 Subject: catch exception by constant reference --- sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx | 9 +++------ sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx | 6 ++---- sd/source/ui/slidesorter/controller/SlideSorterController.cxx | 3 +-- sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx | 3 +-- 4 files changed, 7 insertions(+), 14 deletions(-) (limited to 'sd/source/ui/slidesorter') diff --git a/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx b/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx index 914f39628062..1f78d8e263a4 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx @@ -134,13 +134,11 @@ CacheConfiguration::CacheConfiguration (void) xHierarchy->getByHierarchicalName(sPathToNode), UNO_QUERY); } - catch (RuntimeException &aException) + catch (RuntimeException &) { - (void)aException; } - catch (Exception &aException) + catch (Exception &) { - (void)aException; } } @@ -157,9 +155,8 @@ Any CacheConfiguration::GetValue (const ::rtl::OUString& rName) { aResult = mxCacheNode->getByName(rName); } - catch (Exception &aException) + catch (Exception &) { - (void)aException; } } diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx index b503363c64a8..44ce6c5f2124 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx @@ -221,14 +221,12 @@ void QueueProcessor::ProcessOneRequest ( } } } - catch (::com::sun::star::uno::RuntimeException &aException) + catch (::com::sun::star::uno::RuntimeException &) { - (void) aException; OSL_FAIL("RuntimeException caught in QueueProcessor"); } - catch (::com::sun::star::uno::Exception &aException) + catch (::com::sun::star::uno::Exception &) { - (void) aException; OSL_FAIL("Exception caught in QueueProcessor"); } } diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx index 0d9f576327d3..d86ce83e8289 100644 --- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx +++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx @@ -189,9 +189,8 @@ SlideSorterController::~SlideSorterController (void) if (xComponent.is()) xComponent->dispose(); } - catch( uno::Exception& e ) + catch( uno::Exception& ) { - (void)e; OSL_FAIL( "sd::SlideSorterController::~SlideSorterController(), exception caught!" ); } diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx index 4ef5cf62b5db..22beaae0df9b 100644 --- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx +++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx @@ -165,9 +165,8 @@ SlideSorterViewShell::~SlideSorterViewShell (void) xComponent->dispose(); } } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL("sd::SlideSorterViewShell::~SlideSorterViewShell(), exception caught!" ); } GetFrameView()->Disconnect(); -- cgit