Kaydet (Commit) 330cae47 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SfxAppData_Impl

Change-Id: Ic8b02f5c6582a992b64f31435332ee37d826ad48
üst 44853cc8
......@@ -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
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment