diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 08:49:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 08:49:36 +0200 |
commit | 998f635fb4caeaf3b9f010d6bb6da023569c5791 (patch) | |
tree | c4f918b4d109d444aef2e6ee7b3045276c513dd9 /sc/inc/dpsave.hxx | |
parent | 10cb59eb914ba722c203242272de244d795a51e8 (diff) |
convert subtotalfuncs from manual array to std::vector
Change-Id: I6af7e8c8d001c92edd364aa32224da1e4e1d1d9b
Diffstat (limited to 'sc/inc/dpsave.hxx')
-rw-r--r-- | sc/inc/dpsave.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx index 8338e0ef4862..db5b8ace0ae0 100644 --- a/sc/inc/dpsave.hxx +++ b/sc/inc/dpsave.hxx @@ -103,8 +103,7 @@ private: sal_uInt16 nShowEmptyMode; //! at level bool bRepeatItemLabels; //! at level bool bSubTotalDefault; //! at level - long nSubTotalCount; - sal_uInt16* pSubTotalFuncs; // GeneralFunction2 + std::vector<sal_uInt16> maSubTotalFuncs; // GeneralFunction2 css::sheet::DataPilotFieldReference* pReferenceValue; css::sheet::DataPilotFieldSortInfo* pSortInfo; // (level) css::sheet::DataPilotFieldAutoShowInfo* pAutoShowInfo; // (level) @@ -146,12 +145,12 @@ public: void SetName( const OUString& rNew ); // used if the source dim was renamed (groups) void SetOrientation(sal_uInt16 nNew); - void SetSubTotals(long nCount, const sal_uInt16* pFuncs); + void SetSubTotals(std::vector<sal_uInt16> const & rFuncs); long GetSubTotalsCount() const - { return nSubTotalCount; } + { return maSubTotalFuncs.size(); } sal_uInt16 GetSubTotalFunc(long nIndex) const - { return pSubTotalFuncs[nIndex]; } + { return maSubTotalFuncs[nIndex]; } bool HasShowEmpty() const; void SetShowEmpty(bool bSet); |