diff options
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/grfpage.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 259a28f05fb3..1f4943c1b3ae 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -2463,7 +2463,7 @@ VCL_BUILDER_DECL_FACTORY(AutoCompleteMultiListBox) if (!sBorder.isEmpty()) nWinBits |= WB_BORDER; - return new OfaAutoCompleteTabPage::AutoCompleteMultiListBox(pParent, nWinBits); + return VclPtr<OfaAutoCompleteTabPage::AutoCompleteMultiListBox>::Create(pParent, nWinBits); } // class OfaSmartTagOptionsTabPage --------------------------------------------- diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 2c9998e786c0..e8aa044e55fd 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -219,7 +219,7 @@ BackgroundPreviewImpl::BackgroundPreviewImpl(vcl::Window* pParent) VCL_BUILDER_DECL_FACTORY(BackgroundPreview) { (void)rMap; - return new BackgroundPreviewImpl(pParent); + return VclPtr<BackgroundPreviewImpl>::Create(pParent); } void BackgroundPreviewImpl::setBmp(bool bBmp) diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index 15c9541611aa..42da252257c8 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -796,7 +796,7 @@ VCL_BUILDER_DECL_FACTORY(SvxCropExample) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SvxCropExample(pParent, nWinStyle); + return VclPtr<SvxCropExample>::Create(pParent, nWinStyle); } void SvxCropExample::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) |