diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 16:28:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 16:28:22 +0100 |
commit | 667910530deb61563d4812db0995da94e25220e5 (patch) | |
tree | 9e19a2c89c1b9ee8ae3610096d295e99873a3b5c /starmath | |
parent | 7ac254048a5698e046bbb7deccd171cb3777af61 (diff) |
Revert "Switch VclBuilder constructors to use VclPtr."
Behaves oddly; not ready yet.
This reverts commit 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c.
Change-Id: I30d746eac29d1dbe78d3072b10d2e22c051e3f4e
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 f1be8febad6c..24d2ee4e00c5 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 VclPtr<SmShowFont>::Create(pParent, nWinStyle); + return new SmShowFont(pParent, nWinStyle); } Size SmShowFont::GetOptimalSize() const @@ -1405,7 +1405,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowSymbol) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return VclPtr<SmShowSymbol>::Create(pParent, nWinStyle); + return new SmShowSymbol(pParent, nWinStyle); } void SmShowSymbol::Resize() @@ -1699,7 +1699,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowChar) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return VclPtr<SmShowChar>::Create(pParent, nWinStyle); + return new SmShowChar(pParent, nWinStyle); } void SmShowChar::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRect) |