diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-23 11:15:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-26 10:57:52 +0200 |
commit | 7574d1865fb8512b9416bcb247fb29b8ce80fb72 (patch) | |
tree | 82b4d4adb7f61f1b0f838a31f90a3074f87ea437 /sd/source/ui/view/viewshel.cxx | |
parent | add7a962bc33b3c1f2252a9920bebf324df688de (diff) |
loplugin:useuniqueptr in OutlineViewShell and ViewShell
Change-Id: Ia40444b4ba3c8b02d195d979ff6d84cfe4d8b44e
Reviewed-on: https://gerrit.libreoffice.org/51845
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/viewshel.cxx')
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index f9fdeb1c76a8..e72f15c44395 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -153,7 +153,7 @@ ViewShell::~ViewShell() if (mpContentWindow) mpContentWindow->SetViewShell(nullptr); - delete mpZoomList; + mpZoomList.reset(); mpLayerTabBar.disposeAndClear(); @@ -199,7 +199,7 @@ void ViewShell::construct() if (IsMainViewShell()) GetDocSh()->Connect (this); - mpZoomList = new ZoomList( this ); + mpZoomList.reset( new ZoomList( this ) ); mpContentWindow.reset(VclPtr< ::sd::Window >::Create(GetParentWindow())); SetActiveWindow (mpContentWindow.get()); |