diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 24d2ee4e00c5..f1be8febad6c 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -264,7 +264,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowFont) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SmShowFont(pParent, nWinStyle); + return VclPtr<SmShowFont>::Create(pParent, nWinStyle); } Size SmShowFont::GetOptimalSize() const @@ -1405,7 +1405,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowSymbol) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SmShowSymbol(pParent, nWinStyle); + return VclPtr<SmShowSymbol>::Create(pParent, nWinStyle); } void SmShowSymbol::Resize() @@ -1699,7 +1699,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowChar) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SmShowChar(pParent, nWinStyle); + return VclPtr<SmShowChar>::Create(pParent, nWinStyle); } void SmShowChar::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRect) |