summaryrefslogtreecommitdiff
path: root/sc/inc/dptabsrc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-23 11:56:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-26 15:34:55 +0200
commit4f268695787ff6c7052269058f7ae6de34abfd5d (patch)
tree02c0a55573cc89e103c4c257ffe4b52a0ed0683d /sc/inc/dptabsrc.hxx
parented9793e466faa3952c312d76e66e38f87e3c9052 (diff)
loplugin:useuniqueptr in ScDPSource
Change-Id: Iea0795b0c48ec8ad50af15beb0d27cc335b15660 Reviewed-on: https://gerrit.libreoffice.org/51846 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.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx
index f7bc070e81fa..b963f0894ed8 100644
--- a/sc/inc/dptabsrc.hxx
+++ b/sc/inc/dptabsrc.hxx
@@ -105,11 +105,11 @@ private:
long nDupCount;
// results:
- ScDPResultData* pResData; // keep the rest in this!
- ScDPResultMember* pColResRoot;
- ScDPResultMember* pRowResRoot;
- css::uno::Sequence<css::sheet::MemberResult>* pColResults;
- css::uno::Sequence<css::sheet::MemberResult>* pRowResults;
+ std::unique_ptr<ScDPResultData> pResData; // keep the rest in this!
+ std::unique_ptr<ScDPResultMember> pColResRoot;
+ std::unique_ptr<ScDPResultMember> pRowResRoot;
+ std::unique_ptr<css::uno::Sequence<css::sheet::MemberResult>[]> pColResults;
+ std::unique_ptr<css::uno::Sequence<css::sheet::MemberResult>[]> pRowResults;
std::vector<ScDPLevel*> aColLevelList;
std::vector<ScDPLevel*> aRowLevelList;
bool bResultOverflow;