diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-17 15:11:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-17 15:11:54 +0200 |
commit | 0269ef901119635fa809245698c985b30e648ef4 (patch) | |
tree | beb46403f2675dc15bfd02c1c5bc727ba892c1c6 /sw/source/uibase/misc/glshell.cxx | |
parent | 5459c4a7312ce7bc0326978f4164441e76e5d5a4 (diff) |
sw: convert new to ::Create.
Change-Id: Iab0fc73540b3c7a60c64296dce86b70c1e02cf09
Diffstat (limited to 'sw/source/uibase/misc/glshell.cxx')
-rw-r--r-- | sw/source/uibase/misc/glshell.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<SfxPrinter> pPrinter = VclPtr<SfxPrinter>::Create( pSet ); // and append it to the document. xDocSh->GetDoc()->getIDocumentDeviceAccess().setPrinter( pPrinter, true, true ); |