From 599f0cbe1ddc1d54828489b389b78fdffa4ce39f Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 5 Feb 2016 16:56:54 +0100 Subject: interface to new XTextSearch2 with SearchOptions2, tdf#72196 Places that had utl::TextSearch::UpgradeToSearchOptions2() introduced are worth an inspection if the new SearchAlgorithms2::WILDCARD search should be supported or at least use SearchOptions2 instead of SearchOptions to eliminate the small performance penalty that conversion involves. Change-Id: I565f73af2b551ae9ad0f488e672823dc6c5c1109 --- forms/source/xforms/computedexpression.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forms') diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx index 08fc7511f460..34329860358d 100644 --- a/forms/source/xforms/computedexpression.cxx +++ b/forms/source/xforms/computedexpression.cxx @@ -91,7 +91,7 @@ bool ComputedExpression::_checkExpression( const sal_Char* pExpression ) const SearchOptions aSearchOptions; aSearchOptions.algorithmType = SearchAlgorithms_REGEXP; aSearchOptions.searchString = OUString( pExpression, strlen(pExpression), RTL_TEXTENCODING_ASCII_US ); - utl::TextSearch aTextSearch( aSearchOptions ); + utl::TextSearch aTextSearch( utl::TextSearch::UpgradeToSearchOptions2( aSearchOptions) ); sal_Int32 nLength = msExpression.getLength(); sal_Int32 nStart = 0; -- cgit