summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-10-13 18:04:18 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-10-13 12:32:00 +0000
commit7da303f371c4bcfd8bde284e47a7e2d20c6cb719 (patch)
tree19fb645107366e2cd0f1afb8b434a0a373e029ed /sw
parent97cc70d7285526ae2ee3b3bac425eb031c4c0321 (diff)
sw: Remove inheritance from std::vector
Change-Id: I1b0e42149a91d9e92d227659147584beb27a5704 Reviewed-on: https://gerrit.libreoffice.org/29753 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 34fb28380cd3..2e5b820ca806 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -76,9 +76,10 @@
using namespace ::com::sun::star;
class WW8SelBoxInfo
- : public std::vector<SwTableBox*>
{
private:
+ std::vector<SwTableBox*> m_vBoxes;
+
WW8SelBoxInfo(WW8SelBoxInfo const&) = delete;
WW8SelBoxInfo& operator=(WW8SelBoxInfo const&) = delete;
@@ -90,6 +91,12 @@ public:
WW8SelBoxInfo(short nXCenter, short nWidth)
: nGroupXStart( nXCenter ), nGroupWidth( nWidth ), bGroupLocked(false)
{}
+
+ size_t size() const { return m_vBoxes.size(); }
+
+ SwTableBox* operator[]( size_t nIndex ) { return m_vBoxes[nIndex]; }
+
+ void push_back( SwTableBox* pBox ) { m_vBoxes.push_back(pBox); }
};
WW8TabBandDesc::WW8TabBandDesc()