diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-25 15:08:11 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-25 15:09:58 +0900 |
commit | 8cc98837d30d818fe3a2e4063798c7451044eb9c (patch) | |
tree | 2da46809bc97a39489c6d57c8c855ebefb58899d /sd/source/ui/slidesorter | |
parent | 8b18c70b994e8239f2f0dfd549fcc27feceb413c (diff) |
catch exception by constant reference
Diffstat (limited to 'sd/source/ui/slidesorter')
4 files changed, 7 insertions, 14 deletions
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(); |