summaryrefslogtreecommitdiff
path: root/sw/inc/AnnotationWin.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/AnnotationWin.hxx')
-rw-r--r--sw/inc/AnnotationWin.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx
index 54136b22faf5..8579cfb8db6a 100644
--- a/sw/inc/AnnotationWin.hxx
+++ b/sw/inc/AnnotationWin.hxx
@@ -108,8 +108,8 @@ class SwAnnotationWin : public vcl::Window
bool HasScrollbar() const;
bool IsScrollbarVisible() const;
ScrollBar* Scrollbar() { return mpVScrollbar; }
- ::sw::sidebarwindows::AnchorOverlayObject* Anchor() { return mpAnchor;}
- ::sw::sidebarwindows::ShadowOverlayObject* Shadow() { return mpShadow;}
+ ::sw::sidebarwindows::AnchorOverlayObject* Anchor() { return mpAnchor.get();}
+ ::sw::sidebarwindows::ShadowOverlayObject* Shadow() { return mpShadow.get();}
::sw::overlay::OverlayRanges* TextRange() { return mpTextRangeOverlay.get();}
long GetPostItTextHeight();
@@ -221,8 +221,8 @@ class SwAnnotationWin : public vcl::Window
VclPtr<Edit> mpMetadataDate;
VclPtr<MenuButton> mpMenuButton;
- sw::sidebarwindows::AnchorOverlayObject* mpAnchor;
- sw::sidebarwindows::ShadowOverlayObject* mpShadow;
+ std::unique_ptr<sw::sidebarwindows::AnchorOverlayObject> mpAnchor;
+ std::unique_ptr<sw::sidebarwindows::ShadowOverlayObject> mpShadow;
std::unique_ptr<sw::overlay::OverlayRanges> mpTextRangeOverlay;
Color mColorAnchor;