summaryrefslogtreecommitdiff
path: root/sw/inc/bparr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-26 09:48:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-13 11:56:05 +0200
commit51a50cc95a8cb461b7026c1eb8908e17f4055076 (patch)
tree01d3062cc93857684ec40a5b162b62178f89558b /sw/inc/bparr.hxx
parent7274490e8af1de05ab84b5e08017a3378502ea96 (diff)
improve useuniqueptr loplugin to find arrays
Change-Id: I81e9d0cd4f430b11d20037054055683240792240 Reviewed-on: https://gerrit.libreoffice.org/39825 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.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index 962736c49ce3..5c56f3aa81d9 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 <memory>
struct BlockInfo;
class BigPtrArray;
@@ -63,7 +64,8 @@ struct BlockInfo final
class SW_DLLPUBLIC BigPtrArray
{
protected:
- BlockInfo** m_ppInf; ///< block info
+ std::unique_ptr<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