summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-11-18 15:31:56 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-11-18 15:22:29 +0100
commit085c179b9e146ef27d98aed72d5b681c585cabfc (patch)
tree9e0d3e4d85052aa182aa11a6df0492fe4c18cc76 /svx
parent7b23c53232245a1f61c3e8ddff59d049a49fe975 (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.cxx15
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)