diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-20 12:06:48 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-20 12:07:50 +0900 |
commit | 1f2fd91bf1acc4b6e0b102738c319ce074b7faf7 (patch) | |
tree | 6b066dc32fdbac18dd6dea3cadb5999860412b7b /linguistic/source/lngsvcmgr.cxx | |
parent | add0b7de36f4b0d133906fdd9647d742c33dd63b (diff) |
catch exception by constant reference
Diffstat (limited to 'linguistic/source/lngsvcmgr.cxx')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index b93364b8e50e..6744739b7e30 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -759,9 +759,8 @@ void LngSvcMgr::GetAvailableSpellSvcs_Impl() xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ))) >>= xContext; xSvc = uno::Reference< linguistic2::XSpellChecker >( ( xCompFactory.is() ? xCompFactory->createInstanceWithContext( xContext ) : xFactory->createInstance() ), uno::UNO_QUERY ); } - catch (uno::Exception &rEx) + catch (const uno::Exception &) { - (void) rEx; DBG_ASSERT( 0, "createInstance failed" ); } } @@ -825,9 +824,8 @@ void LngSvcMgr::GetAvailableGrammarSvcs_Impl() xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ))) >>= xContext; xSvc = uno::Reference< linguistic2::XProofreader >( ( xCompFactory.is() ? xCompFactory->createInstanceWithContext( xContext ) : xFactory->createInstance() ), uno::UNO_QUERY ); } - catch (uno::Exception &rEx) + catch (const uno::Exception &) { - (void) rEx; DBG_ASSERT( 0, "createInstance failed" ); } } @@ -890,9 +888,8 @@ void LngSvcMgr::GetAvailableHyphSvcs_Impl() xSvc = uno::Reference< linguistic2::XHyphenator >( ( xCompFactory.is() ? xCompFactory->createInstanceWithContext( xContext ) : xFactory->createInstance() ), uno::UNO_QUERY ); } - catch (uno::Exception &rEx) + catch (const uno::Exception &) { - (void) rEx; DBG_ASSERT( 0, "createInstance failed" ); } } @@ -957,9 +954,8 @@ void LngSvcMgr::GetAvailableThesSvcs_Impl() xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ))) >>= xContext; xSvc = uno::Reference< linguistic2::XThesaurus >( ( xCompFactory.is() ? xCompFactory->createInstanceWithContext( xContext ) : xFactory->createInstance() ), uno::UNO_QUERY ); } - catch (uno::Exception &rEx) + catch (const uno::Exception &) { - (void) rEx; DBG_ASSERT( 0, "createInstance failed" ); } } |