summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-16 15:07:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-19 08:58:46 +0200
commit330cae474bedd303e94c9fab991baaa8390f6b53 (patch)
tree49c62566a82e0a658ae6938dcff5408ddf6975db /sfx2
parent44853cc8be2c7c6174b353e849a757aefa49f604 (diff)
loplugin:useuniqueptr in SfxAppData_Impl
Change-Id: Ic8b02f5c6582a992b64f31435332ee37d826ad48
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appdata.cxx4
-rw-r--r--sfx2/source/inc/appdata.hxx5
2 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/appl/appdata.cxx b/sfx2/source/appl/appdata.cxx
index 920cbdaaea6c..4a277865d830 100644
--- a/sfx2/source/appl/appdata.cxx
+++ b/sfx2/source/appl/appdata.cxx
@@ -122,11 +122,11 @@ SfxAppData_Impl::SfxAppData_Impl()
SfxAppData_Impl::~SfxAppData_Impl()
{
DeInitDDE();
- delete pBasicManager;
+ pBasicManager.reset();
#if HAVE_FEATURE_SCRIPTING
BasicManagerRepository::revokeCreationListener( *pBasMgrListener );
- delete pBasMgrListener;
+ pBasMgrListener.reset();
#endif
}
diff --git a/sfx2/source/inc/appdata.hxx b/sfx2/source/inc/appdata.hxx
index 334abf539179..ac5815731d82 100644
--- a/sfx2/source/inc/appdata.hxx
+++ b/sfx2/source/inc/appdata.hxx
@@ -106,8 +106,9 @@ public:
SfxViewFrameArr_Impl* pViewFrames;
SfxViewShellArr_Impl* pViewShells;
SfxObjectShellArr_Impl* pObjShells;
- SfxBasicManagerHolder* pBasicManager;
- SfxBasicManagerCreationListener*
+ std::unique_ptr<SfxBasicManagerHolder>
+ pBasicManager;
+ std::unique_ptr<SfxBasicManagerCreationListener>
pBasMgrListener;
SfxViewFrame* pViewFrame;
SfxSlotPool* pSlotPool;