Kaydet (Commit) 99d5312a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SdNavigatorWin

Change-Id: Ib1005ab0a0a007d2bad956c8ca0c23c475736d5f
Reviewed-on: https://gerrit.libreoffice.org/56332
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst e5dfdbcc
......@@ -106,8 +106,8 @@ SdNavigatorWin::SdNavigatorWin(vcl::Window* pParent, SfxBindings* pInBindings)
void SdNavigatorWin::SetUpdateRequestFunctor(const UpdateRequestFunctor& rUpdateRequest)
{
mpNavigatorCtrlItem = new SdNavigatorControllerItem(SID_NAVIGATOR_STATE, this, mpBindings, rUpdateRequest);
mpPageNameCtrlItem = new SdPageNameControllerItem(SID_NAVIGATOR_PAGENAME, this, mpBindings);
mpNavigatorCtrlItem.reset( new SdNavigatorControllerItem(SID_NAVIGATOR_STATE, this, mpBindings, rUpdateRequest) );
mpPageNameCtrlItem.reset( new SdPageNameControllerItem(SID_NAVIGATOR_PAGENAME, this, mpBindings) );
// InitTlb; is initiated over Slot
if (rUpdateRequest)
......@@ -121,8 +121,8 @@ SdNavigatorWin::~SdNavigatorWin()
void SdNavigatorWin::dispose()
{
DELETEZ(mpNavigatorCtrlItem);
DELETEZ(mpPageNameCtrlItem);
mpNavigatorCtrlItem.reset();
mpPageNameCtrlItem.reset();
maToolbox.clear();
maTlbObjects.clear();
maLbDocs.clear();
......
......@@ -120,8 +120,8 @@ private:
NavigatorDragType meDragType;
std::vector<NavDocInfo> maDocList;
SfxBindings* mpBindings;
SdNavigatorControllerItem* mpNavigatorCtrlItem;
SdPageNameControllerItem* mpPageNameCtrlItem;
std::unique_ptr<SdNavigatorControllerItem> mpNavigatorCtrlItem;
std::unique_ptr<SdPageNameControllerItem> mpPageNameCtrlItem;
/** This flag controls whether all shapes or only the named shapes are
shown.
......
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