From 6ee9ab65db0a993bc93bbf0140f0a4657be10657 Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 2 Oct 2020 15:56:31 +0200 Subject: use more TOOLS_WARN_EXCEPTION Change-Id: Id83c478af5d04ad548c7cf4239fe2fb3ee154dc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103861 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/i18n/textsearch.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'unotools/source/i18n/textsearch.cxx') diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index c55b7a712147..b6c71aa25c1e 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -34,6 +34,7 @@ #include #include #include +#include using namespace ::com::sun::star::util; using namespace ::com::sun::star::uno; @@ -258,7 +259,7 @@ bool TextSearch::SearchForward( const OUString &rStr, } catch ( Exception& ) { - SAL_WARN( "unotools.i18n", "SearchForward: Exception caught!" ); + TOOLS_WARN_EXCEPTION("unotools.i18n", "" ); } return bRet; } @@ -298,7 +299,7 @@ bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, } catch ( Exception& ) { - SAL_WARN( "unotools.i18n", "SearchBackward: Exception caught!" ); + TOOLS_WARN_EXCEPTION("unotools.i18n", "" ); } return bRet; } -- cgit