diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-11-18 15:31:56 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-11-18 15:22:29 +0100 |
commit | 085c179b9e146ef27d98aed72d5b681c585cabfc (patch) | |
tree | 9e0d3e4d85052aa182aa11a6df0492fe4c18cc76 /svx | |
parent | 7b23c53232245a1f61c3e8ddff59d049a49fe975 (diff) |
Simplify a bit
Change-Id: Ie2cdb0a361376b488d9829c892c9f4c6e9711503
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142941
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/sdrpaintwindow.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx index 6c3b328ba5ea..ebed55326a57 100644 --- a/svx/source/svdraw/sdrpaintwindow.cxx +++ b/svx/source/svdraw/sdrpaintwindow.cxx @@ -252,7 +252,7 @@ SdrPaintWindow::~SdrPaintWindow() { mxOverlayManager.clear(); - DestroyPreRenderDevice(); + mpPreRenderDevice.reset(); } rtl::Reference< sdr::overlay::OverlayManager > const & SdrPaintWindow::GetOverlayManager() const @@ -292,21 +292,12 @@ void SdrPaintWindow::PreparePreRenderDevice() { mpPreRenderDevice.reset(new SdrPreRenderDevice(*mpOutputDevice)); } + mpPreRenderDevice->PreparePreRenderDevice(); } else { - DestroyPreRenderDevice(); + mpPreRenderDevice.reset(); } - - if(mpPreRenderDevice) - { - mpPreRenderDevice->PreparePreRenderDevice(); - } -} - -void SdrPaintWindow::DestroyPreRenderDevice() -{ - mpPreRenderDevice.reset(); } void SdrPaintWindow::OutputPreRenderDevice(const vcl::Region& rExpandedRegion) |