diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-13 14:47:46 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-17 15:33:30 +0200 |
commit | f7d681dc34e60eb8532403079d007ca1250f4941 (patch) | |
tree | 64d40af88cb5be2502584b9a9d9bdf7dd2332ea7 /sw/source/ui/inc/dbinsdlg.hxx | |
parent | SwRedlineAcceptDlg::InsertChildren: fix previous commit: (diff) | |
download | core-f7d681dc34e60eb8532403079d007ca1250f4941.tar.gz core-f7d681dc34e60eb8532403079d007ca1250f4941.zip |
Convert SV_DECL_PTRARR_SORT_DEL(SwInsDBColumns) to o3tl::sorted_vector
Change-Id: I2f6adcff92aedb54c91fe57c1f7511160d9868ce
Diffstat (limited to 'sw/source/ui/inc/dbinsdlg.hxx')
-rw-r--r-- | sw/source/ui/inc/dbinsdlg.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/ui/inc/dbinsdlg.hxx b/sw/source/ui/inc/dbinsdlg.hxx index 30185065bb71..098214eedd61 100644 --- a/sw/source/ui/inc/dbinsdlg.hxx +++ b/sw/source/ui/inc/dbinsdlg.hxx @@ -44,6 +44,8 @@ #include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Sequence.h> #include <boost/ptr_container/ptr_vector.hpp> +#include <o3tl/sorted_vector.hxx> + namespace com{namespace sun{namespace star{ namespace sdbcx{ class XColumnsSupplier; @@ -87,8 +89,11 @@ struct SwInsDBColumn int operator<( const SwInsDBColumn& rCmp ) const; }; -typedef SwInsDBColumn* SwInsDBColumnPtr; -SV_DECL_PTRARR_SORT_DEL( SwInsDBColumns, SwInsDBColumnPtr, 32 ) +class SwInsDBColumns : public o3tl::sorted_vector<SwInsDBColumn*, o3tl::less_ptr_to<SwInsDBColumn> > +{ +public: + ~SwInsDBColumns() { DeleteAndDestroyAll(); } +}; class SwInsertDBColAutoPilot : public SfxModalDialog, public utl::ConfigItem |