diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-18 18:56:41 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-19 10:37:23 +0200 |
commit | 1c0f4d8ca7c127c3d6b31ec772de5b9b680c9db5 (patch) | |
tree | 68885b54cb825627aac2b23a92dc0cc2d72c6b3e | |
parent | 1ae22b70b763610768b5bf1416333c393470d9a5 (diff) |
don't catch this exception, we want to crash if this fails and fix it
Change-Id: I6aa0e1ba94b1702a54c7520a5093e6d0ba75a0d9
-rw-r--r-- | unotools/source/i18n/textsearch.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index f6d606cd26ff..e0dd0615ebd5 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -113,17 +113,11 @@ Reference<XTextSearch> TextSearch::getXTextSearch( const SearchOptions& rPara ) if ( lcl_Equals(rCache.Options, rPara) ) return rCache.xTextSearch; - try - { - Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); - rCache.xTextSearch.set( ::TextSearch::create(xContext) ); - rCache.xTextSearch->setOptions( rPara ); - rCache.Options = rPara; - } - catch ( Exception& e ) - { - SAL_WARN( "unotools.i18n", "caught " << e.Message ); - } + Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); + rCache.xTextSearch.set( ::TextSearch::create(xContext) ); + rCache.xTextSearch->setOptions( rPara ); + rCache.Options = rPara; + return rCache.xTextSearch; } |