summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-02-22 19:52:59 +0100
committerEike Rathke <erack@redhat.com>2016-02-22 21:30:29 +0100
commitd098b76f3311ec1b1763dbcfc1561791a4a2945f (patch)
tree56dc05a06cef73d97f382eae53616b7c240865c1
parent41cd992b0229b2cb814b96b52c0038bf12473b37 (diff)
change to DetectSearchType(), tdf#72196
Change-Id: I34cc3faa325f754e4f1dc5236a65f16e035d6c27
-rw-r--r--sc/source/core/tool/interpr1.cxx4
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);