summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-06 13:38:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-06 14:31:32 +0200
commit77e39d55457385eb1585034e8e461ad9ba77e707 (patch)
tree65251b5ad85da5538f099aad6f50c6b811c3c8b7 /vcl/headless
parent77902a3cb2ab3af542e62253cc9f4dc12e099293 (diff)
use unique_ptr in CreatePrintGraphics
Change-Id: Ib9ca0173f3b5bb090ae71f8622fef717a47e8a2b Reviewed-on: https://gerrit.libreoffice.org/78704 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpprn.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/headless/svpprn.cxx b/vcl/headless/svpprn.cxx
index 03c24eba8217..aa8cd59de2d2 100644
--- a/vcl/headless/svpprn.cxx
+++ b/vcl/headless/svpprn.cxx
@@ -251,9 +251,9 @@ void SvpSalInstance::PostPrintersChanged()
pInst->PostEvent( pSalFrame, nullptr, SalEvent::PrinterChanged );
}
-GenPspGraphics *SvpSalInstance::CreatePrintGraphics()
+std::unique_ptr<GenPspGraphics> SvpSalInstance::CreatePrintGraphics()
{
- return new GenPspGraphics();
+ return std::make_unique<GenPspGraphics>();
}
bool SvpSalInfoPrinter::Setup( weld::Window*, ImplJobSetup* )