summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/AnnotationWin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-23 15:57:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-24 08:36:08 +0200
commit98c21af70727bcaae4ec0754eb922f1b50b99604 (patch)
treedff281c4358ded76fdc1b303ea3ec5efccc74445 /sw/source/uibase/docvw/AnnotationWin.cxx
parentd67d9c26476f32e4b1157f6dd6a2d2746cc9c6c8 (diff)
use regular destructor for AnchorOverlayObject and ShadowOverlayObject
no need for static methods Change-Id: I8de3bf41183ef592f9c08d8d227834fa64d772fa Reviewed-on: https://gerrit.libreoffice.org/57849 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/docvw/AnnotationWin.cxx')
-rw-r--r--sw/source/uibase/docvw/AnnotationWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx
index 07cba9d60d4b..e2fc68e8761d 100644
--- a/sw/source/uibase/docvw/AnnotationWin.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin.cxx
@@ -166,10 +166,10 @@ void SwAnnotationWin::dispose()
RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
- sidebarwindows::AnchorOverlayObject::DestroyAnchorOverlayObject( mpAnchor );
+ delete mpAnchor;
mpAnchor = nullptr;
- sidebarwindows::ShadowOverlayObject::DestroyShadowOverlayObject( mpShadow );
+ delete mpShadow;
mpShadow = nullptr;
mpTextRangeOverlay.reset();