diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-20 09:04:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-22 07:33:56 +0100 |
commit | cc2c1d9525baa5746ee58bb4cb6b0b62eca20a51 (patch) | |
tree | f2b32f9a1181366d1531e399800cb13ad6b49499 /sc/inc/dptabres.hxx | |
parent | 00635fb32c09ab90bff713eb53333de045e301a6 (diff) |
loplugin:useuniqueptr in ScDPResultMember
Change-Id: Icf8a52bcf233994bc49a5d9094196154f20602ea
Reviewed-on: https://gerrit.libreoffice.org/51663
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.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx index 97274c1d659b..3f2400cc9ed8 100644 --- a/sc/inc/dptabres.hxx +++ b/sc/inc/dptabres.hxx @@ -341,8 +341,8 @@ class ScDPResultMember private: const ScDPResultData* pResultData; ScDPParentDimData aParentDimData; - ScDPResultDimension* pChildDimension; - ScDPDataMember* pDataRoot; + std::unique_ptr<ScDPResultDimension> pChildDimension; + std::unique_ptr<ScDPDataMember> pDataRoot; bool bHasElements:1; bool bForceSubTotal:1; bool bHasHiddenDetails:1; @@ -418,10 +418,10 @@ public: #endif //! this will be removed! - const ScDPResultDimension* GetChildDimension() const { return pChildDimension; } - ScDPResultDimension* GetChildDimension() { return pChildDimension; } + const ScDPResultDimension* GetChildDimension() const { return pChildDimension.get(); } + ScDPResultDimension* GetChildDimension() { return pChildDimension.get(); } - ScDPDataMember* GetDataRoot() const { return pDataRoot; } + ScDPDataMember* GetDataRoot() const { return pDataRoot.get(); } const ScDPDimension* GetParentDim() const { return aParentDimData.mpParentDim; } //! Ref const ScDPLevel* GetParentLevel() const { return aParentDimData.mpParentLevel; } //! Ref |