summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-15 11:00:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-15 11:32:58 +0100
commit9e87c064408aa9549336d4ce463e2c2315d30001 (patch)
tree4a35a77319e896c93ddc55bb56bba66375796ec2 /unotools
parentb1ce5db192750210b1546417494664f91759719d (diff)
ubsan: -1 is not a valid value for type 'css::util::SearchAlgorithms'
Change-Id: I59e435c1814da57c318c12f2c1539542960f5b90
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/textsearch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index fa520d0d3a3e..6cab875f268c 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -201,10 +201,10 @@ void TextSearch::Init( const SearchParam & rParam,
{
case SearchParam::SRCH_WILDCARD:
aSOpt.AlgorithmType2 = SearchAlgorithms2::WILDCARD;
+ aSOpt.algorithmType = SearchAlgorithms_MAKE_FIXED_SIZE; // no old enum for that
aSOpt.WildcardEscapeCharacter = rParam.GetWildEscChar();
if (rParam.IsWildMatchSel())
aSOpt.searchFlag |= SearchFlags::WILD_MATCH_SELECTION;
- aSOpt.algorithmType = static_cast<SearchAlgorithms>(-1); // no old enum for that
break;
case SearchParam::SRCH_REGEXP: