summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/dbinsdlg.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-02-16 23:58:01 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-17 10:07:38 +0100
commit1f5efbf8b9ba3fd5887c58574dfed3bf31cd020e (patch)
tree766fdcfb4d76b101c168e70ef342b07cb6e146df /sw/source/uibase/inc/dbinsdlg.hxx
parent39048e0c0e9af455197ff57cc2947f8fb23e8542 (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/source/uibase/inc/dbinsdlg.hxx')
-rw-r--r--sw/source/uibase/inc/dbinsdlg.hxx2
1 files changed, 1 insertions, 1 deletions
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<std::unique_ptr<SwInsDBColumn>, o3tl::less_uniqueptr_to<SwInsDBColumn> >
+class SwInsDBColumns : public o3tl::sorted_vector<std::unique_ptr<SwInsDBColumn>, o3tl::less_ptr_to >
{
};