summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 16:13:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 10:16:35 +0200
commitd72a2899dfd849056c6562bcd08537e1ab52100c (patch)
tree434fafac4098f5625dbce27a76c02b444b05bec7 /toolkit
parent474b4bbff3af7c6b69554ee332c7f26c68cc440d (diff)
loplugin:useuniqueptr in VCLXWindow
Change-Id: Iefec174c7dc3dbd52bdb9f6d7ebe6c8c42c031e9
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindow.cxx4
1 files changed, 2 insertions, 2 deletions
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() )
{