diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-06 11:22:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-06 18:38:22 +0200 |
commit | a7ff945ca031324f060b0d989f7a89594fcfe9fe (patch) | |
tree | ee502330c3e52c59aa2a4c5d97b6307c5a6babe5 /sd | |
parent | 6668b112b341edd24ca77ba88b834108d67b0602 (diff) |
add SfxItemPoolDeleter utility
add use so we can hold the pool with std::unique_ptr
Change-Id: I685fbc37c0ae145a5b48a66a88eab9fb29a0fc0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115174
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/presenter/PresenterTextView.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx index 4a3301bbefc4..c55547c150d2 100644 --- a/sd/source/ui/presenter/PresenterTextView.cxx +++ b/sd/source/ui/presenter/PresenterTextView.cxx @@ -79,7 +79,7 @@ private: cppcanvas::CanvasSharedPtr mpCanvas; VclPtr<VirtualDevice> mpOutputDevice; std::unique_ptr<EditEngine> mpEditEngine; - SfxItemPool* mpEditEngineItemPool; + std::unique_ptr<SfxItemPool, SfxItemPoolDeleter> mpEditEngineItemPool; Size maSize; OUString msText; sal_Int32 mnTop; @@ -258,7 +258,7 @@ PresenterTextView::Implementation::Implementation() rFntDta.nFontInfoId)); } - mpEditEngine.reset( new EditEngine (mpEditEngineItemPool) ); + mpEditEngine.reset( new EditEngine (mpEditEngineItemPool.get()) ); mpEditEngine->EnableUndo (true); mpEditEngine->SetDefTab (sal_uInt16( @@ -279,7 +279,7 @@ PresenterTextView::Implementation::Implementation() PresenterTextView::Implementation::~Implementation() { mpEditEngine.reset(); - SfxItemPool::Free(mpEditEngineItemPool); + mpEditEngineItemPool.reset(); mpOutputDevice.disposeAndClear(); } |