diff options
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" ); } } |