summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/new.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/new.cxx')
-rw-r--r--sfx2/source/doc/new.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index c9e8a2a12ecf..ea4ca888cffe 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -119,7 +119,7 @@ void SfxPreviewWin_Impl::Paint( vcl::RenderContext& /*rRenderContext*/, const Re
VCL_BUILDER_DECL_FACTORY(SfxPreviewWin)
{
(void)rMap;
- return new SfxPreviewWin_Impl(pParent, 0);
+ return VclPtr<SfxPreviewWin_Impl>::Create(pParent, 0);
}
class SfxNewFileDialog_Impl