diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-10-28 14:29:19 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-10-28 14:47:18 +0100 |
commit | 34b5da1c701144d2d957d523d79e2547cbf40ece (patch) | |
tree | fb9a92e4ade328dcc78a30a46ff400bc9b678972 /sw/source/filter/inc | |
parent | 9092f96c63c05833ee5319935da1078afe216b55 (diff) |
sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I1d9aa200734d264e3bc65ea39f8c2a2d03782f7b
Diffstat (limited to 'sw/source/filter/inc')
-rw-r--r-- | sw/source/filter/inc/wrtswtbl.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/filter/inc/wrtswtbl.hxx b/sw/source/filter/inc/wrtswtbl.hxx index 144b19b81dda..47ea399bfb22 100644 --- a/sw/source/filter/inc/wrtswtbl.hxx +++ b/sw/source/filter/inc/wrtswtbl.hxx @@ -21,11 +21,13 @@ #include <tools/solar.h> #include <tools/color.hxx> -#include <boost/ptr_container/ptr_vector.hpp> #include <o3tl/sorted_vector.hxx> #include <swdllapi.h> +#include <memory> +#include <vector> + class SwTableBox; class SwTableLine; class SwTableLines; @@ -89,11 +91,11 @@ public: bool HasPrcWidthOpt() const { return bPrcWidthOpt; } }; -typedef boost::ptr_vector<SwWriteTableCell> SwWriteTableCells; +typedef std::vector<std::unique_ptr<SwWriteTableCell>> SwWriteTableCells; class SW_DLLPUBLIC SwWriteTableRow { - SwWriteTableCells aCells; // Alle Zellen der Rows + SwWriteTableCells m_Cells; ///< All cells of the Rows const SvxBrushItem *pBackground;// Hintergrund long nPos; // End-Position (twips) der Zeile @@ -133,7 +135,7 @@ public: bool HasTopBorder() const { return bTopBorder; } bool HasBottomBorder() const { return bBottomBorder; } - const SwWriteTableCells& GetCells() const { return aCells; } + const SwWriteTableCells& GetCells() const { return m_Cells; } inline bool operator==( const SwWriteTableRow& rRow ) const; inline bool operator<( const SwWriteTableRow& rRow2 ) const; |