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() ...@@ -122,11 +122,11 @@ SfxAppData_Impl::SfxAppData_Impl()
SfxAppData_Impl::~SfxAppData_Impl() SfxAppData_Impl::~SfxAppData_Impl()
{ {
DeInitDDE(); DeInitDDE();
delete pBasicManager; pBasicManager.reset();
#if HAVE_FEATURE_SCRIPTING #if HAVE_FEATURE_SCRIPTING
BasicManagerRepository::revokeCreationListener( *pBasMgrListener ); BasicManagerRepository::revokeCreationListener( *pBasMgrListener );
delete pBasMgrListener; pBasMgrListener.reset();
#endif #endif
} }
......
...@@ -106,8 +106,9 @@ public: ...@@ -106,8 +106,9 @@ public:
SfxViewFrameArr_Impl* pViewFrames; SfxViewFrameArr_Impl* pViewFrames;
SfxViewShellArr_Impl* pViewShells; SfxViewShellArr_Impl* pViewShells;
SfxObjectShellArr_Impl* pObjShells; SfxObjectShellArr_Impl* pObjShells;
SfxBasicManagerHolder* pBasicManager; std::unique_ptr<SfxBasicManagerHolder>
SfxBasicManagerCreationListener* pBasicManager;
std::unique_ptr<SfxBasicManagerCreationListener>
pBasMgrListener; pBasMgrListener;
SfxViewFrame* pViewFrame; SfxViewFrame* pViewFrame;
SfxSlotPool* pSlotPool; 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