summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-01 09:58:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-05 07:30:01 +0100
commit4516546b9efeeaa7cffe608fca8b544230aee3f1 (patch)
treecb6e61643df6cd29bf3ffcb7e8b0ed1fd5d97f6f /desktop/source/deployment/gui/dp_gui_theextmgr.cxx
parent28799d303c84c7ec76c657043c7394ceec4b8416 (diff)
loplugin:useuniqueptr in TheExtensionManager
Change-Id: Ic45feadb64410b3f7833edd52af118436cd9763d Reviewed-on: https://gerrit.libreoffice.org/50715 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/deployment/gui/dp_gui_theextmgr.cxx')
-rw-r--r--desktop/source/deployment/gui/dp_gui_theextmgr.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
index b9dd8cd947f5..ca84148ec7de 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
@@ -104,7 +104,6 @@ TheExtensionManager::~TheExtensionManager()
{
m_pUpdReqDialog.disposeAndClear();
m_pExtMgrDialog.disposeAndClear();
- delete m_pExecuteCmdQueue;
}
@@ -117,8 +116,7 @@ void TheExtensionManager::createDialog( const bool bCreateUpdDlg )
if ( !m_pUpdReqDialog )
{
m_pUpdReqDialog = VclPtr<UpdateRequiredDialog>::Create( nullptr, this );
- delete m_pExecuteCmdQueue;
- m_pExecuteCmdQueue = new ExtensionCmdQueue( m_pUpdReqDialog.get(), this, m_xContext );
+ m_pExecuteCmdQueue.reset( new ExtensionCmdQueue( m_pUpdReqDialog.get(), this, m_xContext ) );
createPackageList();
}
}
@@ -128,8 +126,7 @@ void TheExtensionManager::createDialog( const bool bCreateUpdDlg )
m_pExtMgrDialog = VclPtr<ExtMgrDialog>::Create( VCLUnoHelper::GetWindow(m_xParent), this );
else
m_pExtMgrDialog = VclPtr<ExtMgrDialog>::Create( nullptr, this, Dialog::InitFlag::NoParent );
- delete m_pExecuteCmdQueue;
- m_pExecuteCmdQueue = new ExtensionCmdQueue( m_pExtMgrDialog.get(), this, m_xContext );
+ m_pExecuteCmdQueue.reset( new ExtensionCmdQueue( m_pExtMgrDialog.get(), this, m_xContext ) );
m_pExtMgrDialog->setGetExtensionsURL( m_sGetExtensionsURL );
createPackageList();
}