summaryrefslogtreecommitdiff
path: root/vcl/qt5
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/qt5
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/qt5')
-rw-r--r--vcl/qt5/Qt5Instance_Print.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Instance_Print.cxx b/vcl/qt5/Qt5Instance_Print.cxx
index 1a0410844976..cab5757a31f4 100644
--- a/vcl/qt5/Qt5Instance_Print.cxx
+++ b/vcl/qt5/Qt5Instance_Print.cxx
@@ -124,6 +124,9 @@ OUString Qt5Instance::GetDefaultPrinter()
void Qt5Instance::PostPrintersChanged() {}
-GenPspGraphics* Qt5Instance::CreatePrintGraphics() { return new GenPspGraphics(); }
+std::unique_ptr<GenPspGraphics> Qt5Instance::CreatePrintGraphics()
+{
+ return std::make_unique<GenPspGraphics>();
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */