diff options
author | Matteo Casalin <matteo.casalin@gmx.com> | 2012-11-02 10:20:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-06 14:46:18 +0000 |
commit | 53a227a707a52f1109f7e69022558afd2486659a (patch) | |
tree | fcc219913fb3c70b16d2221e170179c2c36b800e /sw/inc | |
parent | f354ba7a3aba1301f3951fdd9f74a38bd94255af (diff) |
Don't play dirty tricks for const objects
Change-Id: I92c2362b71cf3614b091c893c0fdb3248edb3ddd
Reviewed-on: https://gerrit.libreoffice.org/973
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/bparr.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx index 2a644d385988..7ce0880f11d7 100644 --- a/sw/inc/bparr.hxx +++ b/sw/inc/bparr.hxx @@ -75,13 +75,14 @@ struct BlockInfo { // block info: class SW_DLLPUBLIC BigPtrArray { - BlockInfo** ppInf; // block info + BlockInfo** ppInf; // block info sal_uLong nSize; ///< number of elements sal_uInt16 nMaxBlock; ///< current max. number of blocks sal_uInt16 nBlock; ///< number of blocks - sal_uInt16 nCur; ///< last block + mutable + sal_uInt16 nCur; ///< last used block - sal_uInt16 Index2Block( sal_uLong ) const; ///< block search + 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 |