diff options
author | Noel Grandin <noel@peralex.com> | 2012-04-25 12:12:02 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-04-25 12:35:35 +0200 |
commit | 36394723ac332424d4b74b69ce8d125da4c915fa (patch) | |
tree | 9a1207caa5bfa28b2cad83e16b3bee22543bdb20 /sw/inc | |
parent | 2915069a67c81f2ee8607112379c65de66648ff0 (diff) |
Convert SV_DECL_PTRARR_DEL(SwColumns) to boost::ptr_vector
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/fmtclds.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/fmtclds.hxx b/sw/inc/fmtclds.hxx index 7e1cc64eb8e2..a7b08d3431eb 100644 --- a/sw/inc/fmtclds.hxx +++ b/sw/inc/fmtclds.hxx @@ -34,6 +34,7 @@ #include "swdllapi.h" #include <hintids.hxx> #include <format.hxx> +#include <boost/ptr_container/ptr_vector.hpp> // ColumnDescriptor class SwColumn @@ -49,7 +50,7 @@ class SwColumn public: SwColumn(); - sal_Bool operator==( const SwColumn & ); + sal_Bool operator==( const SwColumn & ) const; void SetWishWidth( sal_uInt16 nNew ) { nWish = nNew; } @@ -65,8 +66,7 @@ public: sal_uInt16 GetRight() const { return nRight; } }; -typedef SwColumn* SwColumnPtr; -SV_DECL_PTRARR_DEL( SwColumns, SwColumnPtr, 0 ) +typedef boost::ptr_vector<SwColumn> SwColumns; enum SwColLineAdj { @@ -119,7 +119,7 @@ public: const SwColumns &GetColumns() const { return aColumns; } SwColumns &GetColumns() { return aColumns; } - sal_uInt16 GetNumCols() const { return aColumns.Count(); } + sal_uInt16 GetNumCols() const { return aColumns.size(); } editeng::SvxBorderStyle GetLineStyle() const { return eLineStyle;} sal_uLong GetLineWidth() const { return nLineWidth;} |