From d72a2899dfd849056c6562bcd08537e1ab52100c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 15 Jan 2018 16:13:27 +0200 Subject: loplugin:useuniqueptr in VCLXWindow Change-Id: Iefec174c7dc3dbd52bdb9f6d7ebe6c8c42c031e9 --- toolkit/source/awt/vclxwindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index 6142b15140a3..7d1a70a23515 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -328,12 +328,12 @@ void ImplInitWindowEvent( css::awt::WindowEvent& rEvent, vcl::Window const * pWi VCLXWindow::VCLXWindow( bool _bWithDefaultProps ) :mpImpl( nullptr ) { - mpImpl = new VCLXWindowImpl( *this, _bWithDefaultProps ); + mpImpl.reset( new VCLXWindowImpl( *this, _bWithDefaultProps ) ); } VCLXWindow::~VCLXWindow() { - delete mpImpl; + mpImpl.reset(); if ( GetWindow() ) { -- cgit