From 42eb843bda1a71db91e6ede0cbb4052f5bc0bb3c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Mar 2017 10:45:11 +0200 Subject: convert SearchBehavior to scoped enum Change-Id: I57f03fc43aff838c7066556319a3a5a187e46ad3 Reviewed-on: https://gerrit.libreoffice.org/35831 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svl/IndexedStyleSheets.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/svl') diff --git a/include/svl/IndexedStyleSheets.hxx b/include/svl/IndexedStyleSheets.hxx index 2513f9aaa6d3..7422dcda5a01 100644 --- a/include/svl/IndexedStyleSheets.hxx +++ b/include/svl/IndexedStyleSheets.hxx @@ -124,14 +124,14 @@ public: std::vector FindPositionsByName(const rtl::OUString& name) const; - enum SearchBehavior { RETURN_ALL, RETURN_FIRST }; + enum class SearchBehavior { ReturnAll, ReturnFirst }; /** Obtain the positions of all styles which have a certain name and fulfill a certain condition. * * This method is fast because it can use the name-based index */ std::vector FindPositionsByNameAndPredicate(const rtl::OUString& name, StyleSheetPredicate& predicate, - SearchBehavior behavior = RETURN_ALL) const; + SearchBehavior behavior = SearchBehavior::ReturnAll) const; /** Obtain the positions of all styles which fulfill a certain condition. * -- cgit