diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdcrtv.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index c015fe69a848..a1529088dbae 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -175,11 +175,7 @@ void ImpSdrCreateViewExtraData::HideOverlay() void SdrCreateView::ImpClearConnectMarker() { - if(mpCoMaOverlay) - { - delete mpCoMaOverlay; - mpCoMaOverlay = nullptr; - } + mpCoMaOverlay.reset(); } void SdrCreateView::ImpClearVars() @@ -201,7 +197,6 @@ SdrCreateView::SdrCreateView( SdrModel& rSdrModel, OutputDevice* pOut) : SdrDragView(rSdrModel, pOut), - mpCoMaOverlay(nullptr), mpCreateViewExtraData(new ImpSdrCreateViewExtraData()) { ImpClearVars(); @@ -295,7 +290,7 @@ void SdrCreateView::SetConnectMarker(const SdrObjConnection& rCon) if(!mpCoMaOverlay) { - mpCoMaOverlay = new ImplConnectMarkerOverlay(*this, *pTargetObject); + mpCoMaOverlay.reset(new ImplConnectMarkerOverlay(*this, *pTargetObject)); } } else |