diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-16 23:58:01 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-17 10:07:38 +0100 |
commit | 1f5efbf8b9ba3fd5887c58574dfed3bf31cd020e (patch) | |
tree | 766fdcfb4d76b101c168e70ef342b07cb6e146df /sw/inc/docary.hxx | |
parent | 39048e0c0e9af455197ff57cc2947f8fb23e8542 (diff) |
Generalize search algorithms in sorted_vector
This allows to simplify the code somewhat, and also to relax requirements
to the arguments, e.g. allowing to pass const objects to search in vector
containing non-const objects.
Change-Id: Id34911a8694bbdec275d22b51ca4a0845c9fa4c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163519
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/inc/docary.hxx')
-rw-r--r-- | sw/inc/docary.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index 6f2c2c3c3284..dce6a44b7576 100644 --- a/sw/inc/docary.hxx +++ b/sw/inc/docary.hxx @@ -209,7 +209,7 @@ public: struct CompareSwRedlineTable { - bool operator()(SwRangeRedline* const &lhs, SwRangeRedline* const &rhs) const; + bool operator()(const SwRangeRedline* lhs, const SwRangeRedline* rhs) const; }; // Notification type for notifying about redlines to LOK clients |