diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 14:02:42 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-12 09:40:38 +0100 |
commit | 936a49646738452f7331ed9a47ac015db9ee7295 (patch) | |
tree | 7dff1a6db99e3e28b8bc2226d07b29d5f2b5cd0b /starmath | |
parent | ab81e3bff2a1844be67209bc8947d539edbaf8e6 (diff) |
Switch VclBuilder constructors to use VclPtr.
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 24d2ee4e00c5..f48fd377e0d7 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); + rRet = 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); + rRet = VclPtr<SmShowSymbol>::Create(pParent, nWinStyle); } void SmShowSymbol::Resize() @@ -1690,7 +1690,6 @@ const SmSym * SmSymbolDialog::GetSymbol() const return bValid ? aSymbolSet[ nSymbolNo ] : NULL; } - VCL_BUILDER_DECL_FACTORY(SmShowChar) { WinBits nWinStyle = 0; @@ -1699,7 +1698,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowChar) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SmShowChar(pParent, nWinStyle); + rRet = VclPtr<SmShowChar>::Create(pParent, nWinStyle); } void SmShowChar::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRect) |