summaryrefslogtreecommitdiff
path: root/chart2/source/view/main/ChartItemPool.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/view/main/ChartItemPool.hxx')
-rw-r--r--chart2/source/view/main/ChartItemPool.hxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/chart2/source/view/main/ChartItemPool.hxx b/chart2/source/view/main/ChartItemPool.hxx
index b311b3050aa7..558ab3c6e2fc 100644
--- a/chart2/source/view/main/ChartItemPool.hxx
+++ b/chart2/source/view/main/ChartItemPool.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CHART2_SOURCE_VIEW_MAIN_CHARTITEMPOOL_HXX
-#define INCLUDED_CHART2_SOURCE_VIEW_MAIN_CHARTITEMPOOL_HXX
+#pragma once
#include <tools/mapunit.hxx>
#include <svl/itempool.hxx>
@@ -27,26 +26,20 @@ namespace chart
{
class ChartItemPool : public SfxItemPool
{
-private:
- std::unique_ptr<SfxItemInfo[]> pItemInfos;
-
public:
ChartItemPool();
ChartItemPool(const ChartItemPool& rPool);
-protected:
virtual ~ChartItemPool() override;
-public:
- virtual SfxItemPool* Clone() const override;
- MapUnit GetMetric( sal_uInt16 nWhich ) const override;
+ virtual rtl::Reference<SfxItemPool> Clone() const override;
+ MapUnit GetMetric(sal_uInt16 nWhich) const override;
/// creates a pure chart item pool
- static SfxItemPool* CreateChartItemPool();
+ static rtl::Reference<SfxItemPool> CreateChartItemPool();
};
} // namespace chart
-#endif
// INCLUDED_CHART2_SOURCE_VIEW_MAIN_CHARTITEMPOOL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */