summaryrefslogtreecommitdiff
path: root/sc/inc/dptabsrc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-31 15:40:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-12 08:43:48 +0200
commite4e4d5713e248f02faf7aa6199b11e152973de8e (patch)
tree836dffa89d0a966e41b1af8270db74b9590def22 /sc/inc/dptabsrc.hxx
parentd4eabd5da8ea3b5ac40659c22cde19b26b3c002b (diff)
clang-tidy readability-delete-null-pointer
which in turn triggered some loplugin:useuniqueptr Change-Id: I0c38561fc9b68dac44e8cf58c8aa1f582196cc64 Reviewed-on: https://gerrit.libreoffice.org/38281 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/dptabsrc.hxx')
-rw-r--r--sc/inc/dptabsrc.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx
index c46a164ea89d..af44e96b008c 100644
--- a/sc/inc/dptabsrc.hxx
+++ b/sc/inc/dptabsrc.hxx
@@ -234,7 +234,8 @@ class ScDPDimensions : public cppu::WeakImplHelper<
private:
ScDPSource* pSource;
long nDimCount;
- rtl::Reference<ScDPDimension>* ppDims;
+ std::unique_ptr<rtl::Reference<ScDPDimension>[]>
+ ppDims;
public:
ScDPDimensions( ScDPSource* pSrc );
@@ -354,7 +355,8 @@ private:
// date columns have 3 hierarchies (flat/quarter/week), other columns only one
// #i52547# don't offer the incomplete date hierarchy implementation
static const long nHierCount = 1;
- rtl::Reference<ScDPHierarchy>* ppHiers;
+ std::unique_ptr<rtl::Reference<ScDPHierarchy>[]>
+ ppHiers;
public:
ScDPHierarchies( ScDPSource* pSrc, long nD );
@@ -418,7 +420,8 @@ private:
long nDim;
long nHier;
long nLevCount;
- rtl::Reference<ScDPLevel>* ppLevs;
+ std::unique_ptr<rtl::Reference<ScDPLevel>[]>
+ ppLevs;
public:
ScDPLevels( ScDPSource* pSrc, long nD, long nH );