summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/childwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 09:01:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 09:32:03 +0100
commit23885b06b185142d6ef4a3ceccfd3b5ad915a65f (patch)
tree868cf1ca4c2d1f9e18136497fc745a74b365bced /sfx2/source/appl/childwin.cxx
parent4a64a68c6828b7cf0e57ee40817f4ab1a8a75aea (diff)
loplugin:unnecessaryparen extend to delete statements
Change-Id: Ic4383ea948876a26f791f0e5b0110cef978a26e1 Reviewed-on: https://gerrit.libreoffice.org/48027 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/childwin.cxx')
-rw-r--r--sfx2/source/appl/childwin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index c6f56ee27a78..9257197af101 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -495,8 +495,7 @@ void SfxChildWindow::CreateContext( sal_uInt16 nContextId, SfxBindings& rBinding
return;
}
- if ( pContext )
- delete( pContext );
+ delete pContext;
pContext = pCon;
pContext->GetWindow()->SetSizePixel( pWindow->GetOutputSizePixel() );
pContext->GetWindow()->Show();