[Libreoffice-commits] core.git: svx/source
Eike Rathke
erack at redhat.com
Fri Sep 1 10:10:11 UTC 2017
svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 78bedc094fbc05f4180fde220672ec4e055e9aab
Author: Eike Rathke <erack at redhat.com>
Date: Fri Sep 1 12:09:19 2017 +0200
Use named enum/constant instead of comment
Change-Id: I91c6e50518d2430e32312ba35f9ff5d76635460e
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 ) }
} ) );
More information about the Libreoffice-commits
mailing list