From 0269ef901119635fa809245698c985b30e648ef4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Apr 2015 15:11:54 +0200 Subject: sw: convert new to ::Create. Change-Id: Iab0fc73540b3c7a60c64296dce86b70c1e02cf09 --- sw/source/uibase/misc/glshell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/misc/glshell.cxx') diff --git a/sw/source/uibase/misc/glshell.cxx b/sw/source/uibase/misc/glshell.cxx index fbbfd851d60b..d3f1e6952a65 100644 --- a/sw/source/uibase/misc/glshell.cxx +++ b/sw/source/uibase/misc/glshell.cxx @@ -248,7 +248,7 @@ SwDocShellRef SwGlossaries::EditGroupDoc( const OUString& rGroup, const OUString SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC, 0 ); - SfxPrinter* pPrinter = new SfxPrinter( pSet ); + VclPtr pPrinter = VclPtr::Create( pSet ); // and append it to the document. xDocSh->GetDoc()->getIDocumentDeviceAccess().setPrinter( pPrinter, true, true ); -- cgit