summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-13 09:59:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-16 08:23:14 +0200
commit58aab71b34327e71b27287b59b9e1d652bf316c3 (patch)
tree3ad295fd980b5e003b1a998b837c3e8d5661a310 /vcl
parent96e5d09224d46641278d995dc5fd463fac3dfa75 (diff)
loplugin:useuniqueptr in DockingAreaWindow
Change-Id: I20fb393cfe4a129bc1007d00df5671c784ae85e4 Reviewed-on: https://gerrit.libreoffice.org/52891 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dockingarea.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 4d01b3625e0c..647f87bf3d36 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -44,7 +44,7 @@ DockingAreaWindow::DockingAreaWindow( vcl::Window* pParent ) :
{
ImplInit( pParent, WB_CLIPCHILDREN|WB_3DLOOK, nullptr );
- mpImplData = new ImplData;
+ mpImplData.reset(new ImplData);
}
DockingAreaWindow::~DockingAreaWindow()
@@ -54,7 +54,7 @@ DockingAreaWindow::~DockingAreaWindow()
void DockingAreaWindow::dispose()
{
- delete mpImplData;
+ mpImplData.reset();
Window::dispose();
}