summaryrefslogtreecommitdiff
path: root/sc/inc/dptabres.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-13 11:30:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-13 13:29:12 +0200
commit7535eaf646605a14050a2f670d54b3fe8b8296a0 (patch)
tree7f6fd50bbc7379df68f94f05c3a65f65eedcad9d /sc/inc/dptabres.hxx
parent044b5d319cc8d337d819efddcc96dd2428961d2a (diff)
loplugin:useuniqueptr in ScDPResultData
Change-Id: I5cef91c2cdb13e33ad19597cd722e77e7c7796c9 Reviewed-on: https://gerrit.libreoffice.org/55745 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/dptabres.hxx')
-rw-r--r--sc/inc/dptabres.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx
index bdd64a140432..5b4956787fac 100644
--- a/sc/inc/dptabres.hxx
+++ b/sc/inc/dptabres.hxx
@@ -292,7 +292,7 @@ class ScDPResultData
bool bDataAtRow:1;
//! add "displayed values" settings
- mutable std::vector<ResultMembers*> maDimMembers;
+ mutable std::vector<std::unique_ptr<ResultMembers>> maDimMembers;
public:
ScDPResultData( ScDPSource& rSrc );
~ScDPResultData();
@@ -328,7 +328,7 @@ public:
bool HasCommonElement( SCROW nFirstDataId, long nFirstIndex,
const ScDPItemData& rSecondData, long nSecondIndex ) const;
- ResultMembers* GetDimResultMembers(long nDim, const ScDPDimension* pDim, ScDPLevel* pLevel) const;
+ ResultMembers& GetDimResultMembers(long nDim, const ScDPDimension* pDim, ScDPLevel* pLevel) const;
const ScDPSource& GetSource() const { return mrSource;}
};