diff options
Diffstat (limited to 'sw/source/filter/inc/wrtswtbl.hxx')
-rw-r--r-- | sw/source/filter/inc/wrtswtbl.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/inc/wrtswtbl.hxx b/sw/source/filter/inc/wrtswtbl.hxx index c19b6b929e90..915ad04dbe9a 100644 --- a/sw/source/filter/inc/wrtswtbl.hxx +++ b/sw/source/filter/inc/wrtswtbl.hxx @@ -200,14 +200,12 @@ inline bool SwWriteTableCol::operator<( const SwWriteTableCol& rCol ) const } struct SwWriteTableColLess { - bool operator()(SwWriteTableCol const * lhs, SwWriteTableCol const * rhs) { + bool operator()(std::unique_ptr<SwWriteTableCol> const & lhs, std::unique_ptr<SwWriteTableCol> const & rhs) { return lhs->GetPos() < rhs->GetPos(); } }; -class SwWriteTableCols : public o3tl::sorted_vector<SwWriteTableCol*, SwWriteTableColLess> { -public: - ~SwWriteTableCols() { DeleteAndDestroyAll(); } +class SwWriteTableCols : public o3tl::sorted_vector<std::unique_ptr<SwWriteTableCol>, SwWriteTableColLess> { }; class SwTable; |