summaryrefslogtreecommitdiff
path: root/cui/source/options/optchart.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optchart.cxx')
-rw-r--r--cui/source/options/optchart.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index 116ff56a9473..2f6938101f85 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -129,14 +129,8 @@ SvxDefaultColorOptPage::SvxDefaultColorOptPage(TabPageParent pParent, const SfxI
SvxDefaultColorOptPage::~SvxDefaultColorOptPage()
{
- disposeOnce();
-}
-
-void SvxDefaultColorOptPage::dispose()
-{
m_xValSetColorBoxWin.reset();
m_xValSetColorBox.reset();
- SfxTabPage::dispose();
}
void SvxDefaultColorOptPage::Construct()
@@ -147,9 +141,9 @@ void SvxDefaultColorOptPage::Construct()
m_xLbChartColors->select( 0 );
}
-VclPtr<SfxTabPage> SvxDefaultColorOptPage::Create( TabPageParent pParent, const SfxItemSet* rAttrs )
+std::unique_ptr<SfxTabPage> SvxDefaultColorOptPage::Create( TabPageParent pParent, const SfxItemSet* rAttrs )
{
- return VclPtr<SvxDefaultColorOptPage>::Create( pParent, *rAttrs );
+ return std::make_unique<SvxDefaultColorOptPage>( pParent, *rAttrs );
}
bool SvxDefaultColorOptPage::FillItemSet( SfxItemSet* rOutAttrs )