diff options
Diffstat (limited to 'sfx2/inc/bitset.hxx')
-rw-r--r-- | sfx2/inc/bitset.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sfx2/inc/bitset.hxx b/sfx2/inc/bitset.hxx index d3f3b281ca1f..d33ccf54bebe 100644 --- a/sfx2/inc/bitset.hxx +++ b/sfx2/inc/bitset.hxx @@ -19,12 +19,14 @@ #ifndef INCLUDED_SFX2_INC_BITSET_HXX #define INCLUDED_SFX2_INC_BITSET_HXX +#include <memory> + class IndexBitSet { private: - sal_uInt16 nBlocks; - sal_uInt16 nCount; - sal_uInt32* pBitmap; + sal_uInt16 nBlocks; + sal_uInt16 nCount; + std::unique_ptr<sal_uInt32[]> pBitmap; IndexBitSet& operator|=( sal_uInt16 nBit ); IndexBitSet& operator-=( sal_uInt16 nBit ); |