include/svx/svdcrtv.hxx | 2 +- svx/source/svdraw/svdcrtv.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4a95c38e1c2c3582b9a53d39e192c5496b12abe0 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Wed Jan 31 13:42:29 2018 +0200 loplugin:useuniqueptr in SdrCreateView Change-Id: Id9e52550264d2c1e0a838ff792f2257fddb64701 Reviewed-on: https://gerrit.libreoffice.org/49269 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/include/svx/svdcrtv.hxx b/include/svx/svdcrtv.hxx index 419193dcadca..c6aef8e9273e 100644 --- a/include/svx/svdcrtv.hxx +++ b/include/svx/svdcrtv.hxx @@ -42,7 +42,7 @@ protected: // for migrating stuff from XOR, use ImpSdrCreateViewExtraData ATM to not need to // compile the apps all the time - ImpSdrCreateViewExtraData* mpCreateViewExtraData; + std::unique_ptr<ImpSdrCreateViewExtraData> mpCreateViewExtraData; Pointer aAktCreatePointer; diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index 2570ee7bcc82..2b4351d5f5ba 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -208,7 +208,7 @@ SdrCreateView::SdrCreateView(SdrModel* pModel1, OutputDevice* pOut) SdrCreateView::~SdrCreateView() { ImpClearConnectMarker(); - delete mpCreateViewExtraData; + mpCreateViewExtraData.reset(); SdrObject::Free( pAktCreate ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits