diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-27 15:58:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 10:13:06 +0200 |
commit | 6100ef45d8c90f141d68011bba9d9745dd319174 (patch) | |
tree | fcb3d07106f936dca2670572920294e050938c50 /sc/inc | |
parent | b7239a1271d5af51163b4fcd93608b72db2616a4 (diff) |
return ScMemChart by std::unique_ptr
Change-Id: I5a5b54872ce6ae351c6550a1ec0b2f7c52c35e13
Reviewed-on: https://gerrit.libreoffice.org/59683
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/cellsuno.hxx | 2 | ||||
-rw-r--r-- | sc/inc/chartarr.hxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 625818ce5cfb..3bdb5e357fc4 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -202,7 +202,7 @@ private: void PaintGridRanges_Impl(); ScRangeListRef GetLimitedChartRanges_Impl( long nDataColumns, long nDataRows ) const; void ForceChartListener_Impl(); - ScMemChart* CreateMemChart_Impl() const; + std::unique_ptr<ScMemChart> CreateMemChart_Impl() const; const ScPatternAttr* GetCurrentAttrsFlat(); const ScPatternAttr* GetCurrentAttrsDeep(); diff --git a/sc/inc/chartarr.hxx b/sc/inc/chartarr.hxx index b24745bc7388..b342be84f7ac 100644 --- a/sc/inc/chartarr.hxx +++ b/sc/inc/chartarr.hxx @@ -61,8 +61,8 @@ class SC_DLLPUBLIC ScChartArray // only parameter-struct ScChartPositioner aPositioner; private: - ScMemChart* CreateMemChartSingle(); - ScMemChart* CreateMemChartMulti(); + std::unique_ptr<ScMemChart> CreateMemChartSingle(); + std::unique_ptr<ScMemChart> CreateMemChartMulti(); public: ScChartArray( ScDocument* pDoc, const ScRangeListRef& rRangeList ); @@ -73,7 +73,7 @@ public: bool HasColHeaders() const { return aPositioner.HasColHeaders(); } bool HasRowHeaders() const { return aPositioner.HasRowHeaders(); } - ScMemChart* CreateMemChart(); + std::unique_ptr<ScMemChart> CreateMemChart(); }; #endif |