diff options
Diffstat (limited to 'sw/source/core/fields/postithelper.cxx')
-rw-r--r-- | sw/source/core/fields/postithelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx index fdce8999502c..6a8f53eea98e 100644 --- a/sw/source/core/fields/postithelper.cxx +++ b/sw/source/core/fields/postithelper.cxx @@ -143,13 +143,13 @@ bool SwAnnotationItem::UseElement() return mrFmtFld.IsFldInDoc(); } -sw::sidebarwindows::SwSidebarWin* SwAnnotationItem::GetSidebarWindow( +VclPtr<sw::sidebarwindows::SwSidebarWin> SwAnnotationItem::GetSidebarWindow( SwEditWin& rEditWin, WinBits nBits, SwPostItMgr& aMgr, SwPostItBits aBits) { - return new sw::annotation::SwAnnotationWin( rEditWin, nBits, + return VclPtr<sw::annotation::SwAnnotationWin>::Create( rEditWin, nBits, aMgr, aBits, *this, &mrFmtFld ); |