summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/textsearch.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-02 15:56:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-03 08:13:51 +0200
commit6ee9ab65db0a993bc93bbf0140f0a4657be10657 (patch)
treebf99e0212559149b943febfff5d7df82d9ccbede /unotools/source/i18n/textsearch.cxx
parent547b1d054162a73d49a828bed140ab8671da2ff8 (diff)
use more TOOLS_WARN_EXCEPTION
Change-Id: Id83c478af5d04ad548c7cf4239fe2fb3ee154dc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103861 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/i18n/textsearch.cxx')
-rw-r--r--unotools/source/i18n/textsearch.cxx5
1 files changed, 3 insertions, 2 deletions
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 <unotools/textsearch.hxx>
#include <rtl/instance.hxx>
#include <rtl/ustrbuf.hxx>
+#include <tools/diagnose_ex.h>
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;
}