diff options
author | Eike Rathke <erack@redhat.com> | 2017-09-01 12:09:19 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-09-01 12:09:51 +0200 |
commit | 78bedc094fbc05f4180fde220672ec4e055e9aab (patch) | |
tree | b32c78ab0cd348422891cb659827fb7bcd78fef3 /svx | |
parent | 69c1e6c5489a4709ae4a1db43673e879eb31919c (diff) |
Use named enum/constant instead of comment
Change-Id: I91c6e50518d2430e32312ba35f9ff5d76635460e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index f39b57373ce9..b728a8941b67 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -45,6 +45,8 @@ #include <com/sun/star/ui/XUIElement.hpp> #include <com/sun/star/util/URL.hpp> #include <com/sun/star/util/URLTransformer.hpp> +#include <com/sun/star/util/SearchAlgorithms.hpp> +#include <com/sun/star/util/SearchAlgorithms2.hpp> #include <svl/ctloptions.hxx> #include <svl/srchitem.hxx> @@ -127,8 +129,8 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext { "SearchItem.SearchFlags", css::uno::makeAny( (sal_Int32)0 ) }, { "SearchItem.TransliterateFlags", css::uno::makeAny( (sal_Int32)nFlags ) }, { "SearchItem.Command", css::uno::makeAny( (sal_Int16)(aFindAll ?SvxSearchCmd::FIND_ALL : SvxSearchCmd::FIND ) ) }, - { "SearchItem.AlgorithmType", css::uno::makeAny( (sal_Int16)0 ) }, // 0 == SearchAlgorithms_ABSOLUTE - { "SearchItem.AlgorithmType2", css::uno::makeAny( (sal_Int16)1 ) }, // 1 == SearchAlgorithms2_ABSOLUTE + { "SearchItem.AlgorithmType", css::uno::makeAny( (sal_Int16)css::util::SearchAlgorithms_ABSOLUTE ) }, + { "SearchItem.AlgorithmType2", css::uno::makeAny( (sal_Int16)css::util::SearchAlgorithms2::ABSOLUTE ) }, { "SearchItem.SearchFormatted", css::uno::makeAny( bSearchFormatted ) } } ) ); |