summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsa.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviewsa.cxx')
-rw-r--r--sd/source/ui/view/drviewsa.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 52cd788cf58a..afa1c293533f 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -177,11 +177,11 @@ DrawViewShell::~DrawViewShell()
}
}
- if ( mpClipEvtLstnr )
+ if ( mxClipEvtLstnr.is() )
{
- mpClipEvtLstnr->AddRemoveListener( GetActiveWindow(), false );
- mpClipEvtLstnr->ClearCallbackLink(); // prevent callback if another thread is waiting
- mpClipEvtLstnr->release();
+ mxClipEvtLstnr->AddRemoveListener( GetActiveWindow(), false );
+ mxClipEvtLstnr->ClearCallbackLink(); // prevent callback if another thread is waiting
+ mxClipEvtLstnr.clear();
}
delete mpDrawView;
@@ -201,7 +201,7 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind)
mpActualPage = nullptr;
mbMousePosFreezed = false;
mbReadOnly = GetDocSh()->IsReadOnly();
- mpClipEvtLstnr = nullptr;
+ mxClipEvtLstnr.clear();
mbPastePossible = false;
mbIsLayerModeActive = false;