diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 10:13:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 10:48:27 +0000 |
commit | 49bfc59272f8482ca37abc631d2c3777518fd1d5 (patch) | |
tree | e01cb4a3fa03b6dbd7107e409de83de19813d804 /sfx2/inc | |
parent | 88c755e37cd36ddfe6d0d651540d9f2bd8a029a6 (diff) |
new loplugin: useuniqueptr: sfx2
Change-Id: I544c615105d14fa258fed7f30790d305e987f523
Reviewed-on: https://gerrit.libreoffice.org/33206
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/inc')
-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 ); |