diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-10 22:14:57 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-10 22:16:07 +0900 |
commit | 93a9f170be76965ec004b200ac939e55e8382ca0 (patch) | |
tree | 2631f1e25117ae2bef93935fb3dab41d13c728db /extensions/source/bibliography/framectr.cxx | |
parent | 1688a9d9235dd2ee4f3b9497308efd41f7a3fb6f (diff) |
catch exception by constant reference
Diffstat (limited to 'extensions/source/bibliography/framectr.cxx')
-rw-r--r-- | extensions/source/bibliography/framectr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx index 744c57a414e0..c645c9af8718 100644 --- a/extensions/source/bibliography/framectr.cxx +++ b/extensions/source/bibliography/framectr.cxx @@ -406,7 +406,7 @@ sal_Bool BibFrameController_Impl::SaveModified(const Reference< form::runtime::X _xCursor->updateRow(); bResult = sal_True; } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("SaveModified: Exception occurred!"); } @@ -594,7 +594,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen Reference< XResultSetUpdate > xUpdateCursor( pDatMan->getForm(), UNO_QUERY ); xUpdateCursor->moveToInsertRow(); } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("Exception in last() or moveToInsertRow()"); } @@ -634,7 +634,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen if (bSuccess) xUpdateCursor->deleteRow(); } - catch(Exception&) + catch(const Exception&) { bSuccess = sal_False; } @@ -654,7 +654,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen // Datensatz bewegen um Stati neu zu setzen xCursor->first(); } - catch(Exception&) + catch(const Exception&) { OSL_FAIL("DeleteRecord : exception caught !"); } |