diff options
author | Eike Rathke <erack@redhat.com> | 2016-02-25 16:13:39 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-02-25 17:33:36 +0100 |
commit | b3ee4ba346ca21a89158a86c7fc1fc3b25d3e371 (patch) | |
tree | d072a1f95b66ce595504aa2e3ee52dcd6f483630 /cui/source/options/optaboutconfig.cxx | |
parent | c20c697294dc0eae789cbdcca382c3f60ed3d497 (diff) |
use SearchOptions2
Change-Id: I1eaf001475bacb29d23cb7465a0a19d89afb802b
Diffstat (limited to 'cui/source/options/optaboutconfig.cxx')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 85dc3f82f243..4d5110d210d4 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/util/XChangesBatch.hpp> #include <com/sun/star/i18n/TransliterationModules.hpp> #include <com/sun/star/util/SearchFlags.hpp> +#include <com/sun/star/util/SearchAlgorithms2.hpp> #include <unotools/textsearch.hxx> #include <vector> @@ -172,7 +173,7 @@ CuiAboutConfigTabPage::CuiAboutConfigTabPage( vcl::Window* pParent/*, const SfxI aTabs[3] = aTabs[2] + fWidth * 20; aTabs[4] = aTabs[3] + fWidth * 8; - m_options.algorithmType = util::SearchAlgorithms_ABSOLUTE; + m_options.AlgorithmType2 = util::SearchAlgorithms2::ABSOLUTE; m_options.transliterateFlags |= i18n::TransliterationModules_IGNORE_CASE; m_options.searchFlag |= (util::SearchFlags::REG_NOT_BEGINOFLINE | util::SearchFlags::REG_NOT_ENDOFLINE); @@ -833,7 +834,7 @@ IMPL_LINK_NOARG_TYPED( CuiAboutConfigTabPage, SearchHdl_Impl, Button*, void) else { m_options.searchString = m_pSearchEdit->GetText(); - utl::TextSearch textSearch( utl::TextSearch::UpgradeToSearchOptions2( m_options) ); + utl::TextSearch textSearch( m_options ); for (auto const& it : m_prefBoxEntries) { sal_Int32 endPos, startPos = 0; |