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

loplugin:useuniqueptr in SvxIMapDlg

Change-Id: I6cbfd9c78b5bb5626a3db9ca0b6e3b51a91859a7
Reviewed-on: https://gerrit.libreoffice.org/55234Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7b833ad6
......@@ -30,6 +30,7 @@
#include <vcl/toolbox.hxx>
#include <vcl/status.hxx>
#include <svx/svxdllapi.h>
#include <memory>
#include <vector>
class ImageMap;
......@@ -112,7 +113,7 @@ class SVX_DLLPUBLIC SvxIMapDlg : public SfxModelessDialog // SfxFloatingWindow
sal_uInt16 mnCloseId;
VclPtr<IMapWindow> pIMapWnd;
IMapOwnData* pOwnData;
std::unique_ptr<IMapOwnData> pOwnData;
void* pCheckObj;
SvxIMapDlgItem aIMapItem;
......
......@@ -167,7 +167,7 @@ SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window
pIMapWnd->set_vexpand(true);
pIMapWnd->Show();
pOwnData = new IMapOwnData;
pOwnData.reset(new IMapOwnData);
pIMapWnd->SetInfoLink( LINK( this, SvxIMapDlg, InfoHdl ) );
pIMapWnd->SetMousePosLink( LINK( this, SvxIMapDlg, MousePosHdl ) );
......@@ -222,7 +222,7 @@ void SvxIMapDlg::dispose()
// Delete URL-List
pIMapWnd.disposeAndClear();
DELETEZ( pOwnData );
pOwnData.reset();
m_pTbxIMapDlg1.clear();
m_pFtURL.clear();
m_pURLBox.clear();
......
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