summaryrefslogtreecommitdiffstats
path: root/include/vcl/print.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-08 13:32:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-09 13:11:47 +0200
commit6d008c9e1dbe4240a10c8789860dc30b0cb0b2d5 (patch)
tree25330d9240ea3ef0687809ab8286c1e2c4b1c75f /include/vcl/print.hxx
parentreturn SalSession with std::unique_ptr (diff)
downloadcore-6d008c9e1dbe4240a10c8789860dc30b0cb0b2d5.tar.gz
core-6d008c9e1dbe4240a10c8789860dc30b0cb0b2d5.zip
hold and return SalPrinter with std::unique_ptr
and remove DestroyPrinter, doesn't not anything beyond delete'ing the object Change-Id: I25e14b962e65a0e131fae3ff5771c82920a4e375 Reviewed-on: https://gerrit.libreoffice.org/55498 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/print.hxx')
-rw-r--r--include/vcl/print.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index c80b514b05df..2fe921ee1870 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -182,7 +182,7 @@ class VCL_DLLPUBLIC Printer : public OutputDevice
private:
SalInfoPrinter* mpInfoPrinter;
- SalPrinter* mpPrinter;
+ std::unique_ptr<SalPrinter> mpPrinter;
SalGraphics* mpJobGraphics;
VclPtr<Printer> mpPrev;
VclPtr<Printer> mpNext;