diff options
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 82f6bebf0177..a35a9762eb67 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -8147,9 +8147,7 @@ void ScInterpreter::ScSearch() PushNoValue(); else { - utl::SearchParam::SearchType eSearchType = - (MayBeRegExp( SearchStr, pDok ) ? - utl::SearchParam::SRCH_REGEXP : utl::SearchParam::SRCH_NORMAL); + utl::SearchParam::SearchType eSearchType = DetectSearchType( SearchStr, pDok ); utl::SearchParam sPar(SearchStr, eSearchType, false, false, false); utl::TextSearch sT( sPar, *ScGlobal::pCharClass ); bool bBool = sT.SearchForward(sStr, &nPos, &nEndPos); |