From 5493951893ea90b330d5280bc171a60ff46fa396 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 6 Jan 2012 00:03:58 +0900 Subject: catch exception by constant reference --- svl/source/config/itemholder2.cxx | 4 ++-- svl/source/fsstor/fsstorage.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'svl') diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx index dc7cd36f24fe..f2545d4d564d 100644 --- a/svl/source/config/itemholder2.cxx +++ b/svl/source/config/itemholder2.cxx @@ -62,12 +62,12 @@ ItemHolder2::ItemHolder2() if (xCfg.is()) xCfg->addEventListener(static_cast< css::lang::XEventListener* >(this)); } - catch(css::uno::RuntimeException& rREx) + catch(const css::uno::RuntimeException& rREx) { throw rREx; } #ifdef DBG_UTIL - catch(css::uno::Exception& rEx) + catch(const css::uno::Exception& rEx) { static sal_Bool bMessage = sal_True; if(bMessage) diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index 4fbc78023184..01e4434a9c0c 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -1142,7 +1142,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL FSStorage::getElementNames() } } } - catch( ucb::InteractiveIOException& r ) + catch( const ucb::InteractiveIOException& r ) { if ( r.Code == ucb::IOErrorCode_NOT_EXISTING ) OSL_FAIL( "The folder does not exist!\n" ); -- cgit