diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-05 10:54:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-07 21:51:32 +0200 |
commit | 2ed8c34bca56c1a30d727b21d9096cb77e88197a (patch) | |
tree | 4eb83db9bd66a6719ed88df70a123993ce246306 /chart2/source/view/main/ChartItemPool.hxx | |
parent | ea67083cf5b8bceeab7d521663c768b59dd49d1d (diff) |
use a single global item pool for chart2 draw model
which exposed a bug in SvxUnoNameItemTable::replaceByName
Change-Id: If3207df6d46a2185b78ea5c3e1c145527b42d7cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115126
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/main/ChartItemPool.hxx')
-rw-r--r-- | chart2/source/view/main/ChartItemPool.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/view/main/ChartItemPool.hxx b/chart2/source/view/main/ChartItemPool.hxx index b424ed89e8e4..43f461a6aade 100644 --- a/chart2/source/view/main/ChartItemPool.hxx +++ b/chart2/source/view/main/ChartItemPool.hxx @@ -29,7 +29,6 @@ class ChartItemPool : public SfxItemPool private: std::unique_ptr<SfxItemInfo[]> pItemInfos; -public: ChartItemPool(); ChartItemPool(const ChartItemPool& rPool); @@ -40,8 +39,8 @@ public: virtual SfxItemPool* Clone() const override; MapUnit GetMetric(sal_uInt16 nWhich) const override; - /// creates a pure chart item pool - static SfxItemPool* CreateChartItemPool(); + /// get the pure chart item pool + static SfxItemPool& GetGlobalChartItemPool(); }; } // namespace chart |