diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 12:17:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-04 12:59:44 +0200 |
commit | 6203c2b73db2de239498b517a222c38433fd9168 (patch) | |
tree | 2c2f282e995d60ce73a51d77caa4cbc217dc15f2 /sw/source/uibase | |
parent | 55f78bcb63e552559ec6a18e39ae982dd925974a (diff) |
loplugin:useuniqueptr in SwInsDBColumns
Change-Id: Idd159cfd29d487773e478a0cca352fcb77f88a33
Reviewed-on: https://gerrit.libreoffice.org/61340
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/inc/dbinsdlg.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/uibase/inc/dbinsdlg.hxx b/sw/source/uibase/inc/dbinsdlg.hxx index c260b2b07c23..e727af3dd5e3 100644 --- a/sw/source/uibase/inc/dbinsdlg.hxx +++ b/sw/source/uibase/inc/dbinsdlg.hxx @@ -78,10 +78,8 @@ struct SwInsDBColumn bool operator<( const SwInsDBColumn& rCmp ) const; }; -class SwInsDBColumns : public o3tl::sorted_vector<SwInsDBColumn*, o3tl::less_ptr_to<SwInsDBColumn> > +class SwInsDBColumns : public o3tl::sorted_vector<std::unique_ptr<SwInsDBColumn>, o3tl::less_uniqueptr_to<SwInsDBColumn> > { -public: - ~SwInsDBColumns() { DeleteAndDestroyAll(); } }; class SwInsertDBColAutoPilot : public SfxModalDialog, public utl::ConfigItem |