diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-16 15:20:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-20 07:40:22 +0100 |
commit | d728d5d192e6f100d64ffa2e267055a451e9e403 (patch) | |
tree | 427bb1cc84160183ecb735ec70d14e100b7f29e8 /sfx2 | |
parent | daf1b10f4e266818b6e14f0f1dfddd66f0a3a2f0 (diff) |
loplugin:useuniqueptr in SvBaseLink
Change-Id: Iaa133fa7f3b4bc4adea1c1568015327b1694161b
Reviewed-on: https://gerrit.libreoffice.org/48169
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index faf9e92957c4..5d6ae348cd76 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -125,7 +125,7 @@ SvBaseLink::SvBaseLink() m_bIsReadOnly(false) { nObjType = OBJECT_CLIENT_SO; - pImplData = new ImplBaseLinkData; + pImplData.reset( new ImplBaseLinkData ); bVisible = bSynchron = true; bWasLastEditOK = false; } @@ -136,7 +136,7 @@ SvBaseLink::SvBaseLink( SfxLinkUpdateMode nUpdateMode, SotClipboardFormatId nCon m_bIsReadOnly(false) { nObjType = OBJECT_CLIENT_SO; - pImplData = new ImplBaseLinkData; + pImplData.reset( new ImplBaseLinkData ); bVisible = bSynchron = true; bWasLastEditOK = false; @@ -187,7 +187,7 @@ SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLin bVisible = bSynchron = true; bWasLastEditOK = false; aLinkName = rLinkName; - pImplData = new ImplBaseLinkData; + pImplData.reset( new ImplBaseLinkData ); nObjType = nObjectType; if( !pObj ) @@ -231,7 +231,7 @@ SvBaseLink::~SvBaseLink() break; } - delete pImplData; + pImplData.reset(); } IMPL_LINK( SvBaseLink, EndEditHdl, const OUString&, _rNewName, void ) |