diff options
Diffstat (limited to 'sd/source/ui/docshell/docshel2.cxx')
-rw-r--r-- | sd/source/ui/docshell/docshel2.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx index af8320e8a531..f43bc1a71d2d 100644 --- a/sd/source/ui/docshell/docshel2.cxx +++ b/sd/source/ui/docshell/docshel2.cxx @@ -52,7 +52,7 @@ void DrawDocShell::Draw(OutputDevice* pOut, const JobSetup&, sal_uInt16 nAspect) // THUMBNAIL: here we may can set the draft mode } - ClientView* pView = new ClientView(this, pOut); + std::unique_ptr<ClientView> pView( new ClientView(this, pOut) ); pView->SetHlplVisible(false); pView->SetGridVisible(false); @@ -116,9 +116,6 @@ void DrawDocShell::Draw(OutputDevice* pOut, const JobSetup&, sal_uInt16 nAspect) pOut->SetMapMode(aOldMapMode); } } - - delete pView; - } Rectangle DrawDocShell::GetVisArea(sal_uInt16 nAspect) const |