From 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 11 May 2015 14:02:42 +0100 Subject: Switch VclBuilder constructors to use VclPtr. Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf --- sw/source/ui/table/tautofmt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/ui/table') diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx index 3332023cd12f..439057f1215b 100644 --- a/sw/source/ui/table/tautofmt.cxx +++ b/sw/source/ui/table/tautofmt.cxx @@ -539,7 +539,7 @@ VCL_BUILDER_DECL_FACTORY(AutoFmtPreview) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new AutoFmtPreview(pParent, nWinStyle); + return VclPtr::Create(pParent, nWinStyle); } void AutoFmtPreview::Resize() -- cgit