summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-25 15:08:11 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-25 15:09:58 +0900
commit8cc98837d30d818fe3a2e4063798c7451044eb9c (patch)
tree2da46809bc97a39489c6d57c8c855ebefb58899d /sd/source/ui/slidesorter
parent8b18c70b994e8239f2f0dfd549fcc27feceb413c (diff)
catch exception by constant reference
Diffstat (limited to 'sd/source/ui/slidesorter')
-rw-r--r--sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx9
-rw-r--r--sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx6
-rw-r--r--sd/source/ui/slidesorter/controller/SlideSorterController.cxx3
-rw-r--r--sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx3
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();