diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 15:06:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 08:50:35 +0200 |
commit | 1eee0abd459a508a6dcf9e71cbf2c1be3725faa7 (patch) | |
tree | 9d9775249923ea166db8c997e506aebff4ff4ae2 /sw/inc/bparr.hxx | |
parent | 7b850c15b15be10ed3b52822f63b02d8787bcb2f (diff) |
use std::vector in BigPtrArray
Change-Id: Ibf63213eb44ef2bb51042607cbdedcb66181b51a
Reviewed-on: https://gerrit.libreoffice.org/39302
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/bparr.hxx')
-rw-r--r-- | sw/inc/bparr.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx index c51e959ada1d..90f00231fa3d 100644 --- a/sw/inc/bparr.hxx +++ b/sw/inc/bparr.hxx @@ -25,6 +25,7 @@ #include <tools/solar.h> #include <swdllapi.h> #include <array> +#include <vector> struct BlockInfo; class BigPtrArray; @@ -66,16 +67,14 @@ struct BlockInfo final class SW_DLLPUBLIC BigPtrArray { protected: - BlockInfo** m_ppInf; ///< block info + std::vector<BlockInfo*> + m_vpInf; ///< block info sal_uLong m_nSize; ///< number of elements - sal_uInt16 m_nMaxBlock; ///< current max. number of blocks - sal_uInt16 m_nBlock; ///< number of blocks mutable sal_uInt16 m_nCur; ///< last used block sal_uInt16 Index2Block( sal_uLong ) const; ///< block search BlockInfo* InsBlock( sal_uInt16 ); ///< insert block - void BlockDel( sal_uInt16 ); ///< some blocks were deleted void UpdIndex( sal_uInt16 ); ///< recalculate indices // fill all blocks |