diff options
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/inc/cuitabarea.hxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/tppattern.cxx | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx index 2c8e55234fe9..119c466a9971 100644 --- a/cui/source/inc/cuitabarea.hxx +++ b/cui/source/inc/cuitabarea.hxx @@ -592,7 +592,7 @@ private: VclPtr<PushButton> m_pBtnAdd; VclPtr<PushButton> m_pBtnModify; - SvxBitmapCtl* m_pBitmapCtl; + std::unique_ptr<SvxBitmapCtl> m_pBitmapCtl; const SfxItemSet& m_rOutAttrs; diff --git a/cui/source/tabpages/tppattern.cxx b/cui/source/tabpages/tppattern.cxx index 9bb279850d1f..712bef2dc03e 100644 --- a/cui/source/tabpages/tppattern.cxx +++ b/cui/source/tabpages/tppattern.cxx @@ -109,7 +109,7 @@ SvxPatternTabPage::SvxPatternTabPage( vcl::Window* pParent, const SfxItemSet& r m_pCtlPreview->set_width_request(aSize.Width()); m_pCtlPreview->set_height_request(aSize.Height()); - m_pBitmapCtl = new SvxBitmapCtl; + m_pBitmapCtl.reset(new SvxBitmapCtl); // this page needs ExchangeSupport SetExchangeSupport(); @@ -137,8 +137,7 @@ SvxPatternTabPage::~SvxPatternTabPage() void SvxPatternTabPage::dispose() { - delete m_pBitmapCtl; - m_pBitmapCtl = nullptr; + m_pBitmapCtl.reset(); m_pCtlPixel.clear(); m_pLbColor.clear(); m_pLbBackgroundColor.clear(); |