diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-29 10:45:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-29 10:47:00 +0000 |
commit | 42eb843bda1a71db91e6ede0cbb4052f5bc0bb3c (patch) | |
tree | df94e4cbae5ff8b1eee98611df66ca48ee6704aa /include | |
parent | 5f2d57fb32bc47dad8ec38287db6627ea6273527 (diff) |
convert SearchBehavior to scoped enum
Change-Id: I57f03fc43aff838c7066556319a3a5a187e46ad3
Reviewed-on: https://gerrit.libreoffice.org/35831
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/IndexedStyleSheets.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<unsigned> 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<unsigned> 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. * |