diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-04 13:08:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-05 09:31:50 +0200 |
commit | d2b3ea4d377bf05830f6eb11d53fd55ea6b435fc (patch) | |
tree | a9ca855eac45810e67d6e629538de13b2a9e589d /sfx2/source/dialog/splitwin.cxx | |
parent | 7a11e702569ab89eb7722c883ecc3cbbe1a19a65 (diff) |
loplugin:useuniqueptr in sfx2
Change-Id: I7b406cd07cae579de608faa3ec47dd1190dea411
Reviewed-on: https://gerrit.libreoffice.org/60003
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/splitwin.cxx')
-rw-r--r-- | sfx2/source/dialog/splitwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index ac0530433bdf..88f0c860f7d4 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -658,7 +658,7 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl const * pDock, nWinSize = rSize.Height(); } - DeactivateUpdateMode* pDeactivateUpdateMode = new DeactivateUpdateMode( *this ); + std::unique_ptr<DeactivateUpdateMode> pDeactivateUpdateMode(new DeactivateUpdateMode( *this )); if ( bNewLine || nLine == GetItemCount() ) { @@ -728,7 +728,7 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl const * pDock, pWorkWin->ShowChildren_Impl(); } - delete pDeactivateUpdateMode; + pDeactivateUpdateMode.reset(); // workaround insufficiency of <SplitWindow> regarding dock layouting: // apply FIXED item size as 'original' item size to improve layouting of undock-dock-cycle of a window |