From 1f5efbf8b9ba3fd5887c58574dfed3bf31cd020e Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 16 Feb 2024 23:58:01 +0600 Subject: 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 --- sw/source/uibase/inc/dbinsdlg.hxx | 2 +- sw/source/uibase/inc/redlndlg.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/dbinsdlg.hxx b/sw/source/uibase/inc/dbinsdlg.hxx index 035bf49c6181..5694057990eb 100644 --- a/sw/source/uibase/inc/dbinsdlg.hxx +++ b/sw/source/uibase/inc/dbinsdlg.hxx @@ -73,7 +73,7 @@ struct SwInsDBColumn bool operator<( const SwInsDBColumn& rCmp ) const; }; -class SwInsDBColumns : public o3tl::sorted_vector, o3tl::less_uniqueptr_to > +class SwInsDBColumns : public o3tl::sorted_vector, o3tl::less_ptr_to > { }; diff --git a/sw/source/uibase/inc/redlndlg.hxx b/sw/source/uibase/inc/redlndlg.hxx index c8cfd8cc8262..d3944e9f81d9 100644 --- a/sw/source/uibase/inc/redlndlg.hxx +++ b/sw/source/uibase/inc/redlndlg.hxx @@ -51,7 +51,7 @@ struct SwRedlineDataParent { return (pData && pData->GetSeqNo() < rObj.pData->GetSeqNo()); } }; -class SwRedlineDataParentSortArr : public o3tl::sorted_vector > {}; +class SwRedlineDataParentSortArr : public o3tl::sorted_vector {}; class SW_DLLPUBLIC SwRedlineAcceptDlg final { -- cgit