summaryrefslogtreecommitdiff
path: root/sw/inc/bparr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 12:22:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 13:06:45 +0200
commit2d5090419e0113f5b411ee84bfc55926a19da411 (patch)
treeab6828f87b52aa6817a83aa8b0d064427a501b58 /sw/inc/bparr.hxx
parentb59722cd2aa2d13562d288fc07cca50c2ce2d638 (diff)
inline ElementPtr
Change-Id: I93a9527283a819a95563565a252a5088253c91c0 Reviewed-on: https://gerrit.libreoffice.org/39293 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.hxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index cbb63d36956a..46260762b9d4 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -40,7 +40,6 @@ public:
inline sal_uLong GetPos() const;
inline BigPtrArray& GetArray() const;
};
-typedef BigPtrEntry* ElementPtr;
// 1000 entries per Block = a bit less then 4K
#define MAXENTRY 1000
@@ -51,9 +50,9 @@ typedef BigPtrEntry* ElementPtr;
// if complete compression is desired, 100 has to be specified
#define COMPRESSLVL 80
-struct BlockInfo { // block info:
+struct BlockInfo {
BigPtrArray* pBigArr; ///< in this array the block is located
- ElementPtr* pData; ///< data block
+ BigPtrEntry** pData; ///< data block
sal_uLong nStart, nEnd; ///< start- and end index
sal_uInt16 nElem; ///< number of elements
};
@@ -61,7 +60,7 @@ struct BlockInfo { // block info:
class SW_DLLPUBLIC BigPtrArray
{
protected:
- BlockInfo** m_ppInf; // block info
+ BlockInfo** m_ppInf; ///< 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
@@ -82,12 +81,12 @@ public:
sal_uLong Count() const { return m_nSize; }
- void Insert( const ElementPtr& r, sal_uLong pos );
+ void Insert( BigPtrEntry* p, sal_uLong pos );
void Remove( sal_uLong pos, sal_uLong n = 1 );
void Move( sal_uLong from, sal_uLong to );
- void Replace( sal_uLong pos, const ElementPtr& r);
+ void Replace( sal_uLong pos, BigPtrEntry* p);
- ElementPtr operator[]( sal_uLong ) const;
+ BigPtrEntry* operator[]( sal_uLong ) const;
};
inline sal_uLong BigPtrEntry::GetPos() const