diff options
author | Mark Hung <marklh9@gmail.com> | 2021-10-11 10:26:56 +0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 08:34:28 +0200 |
commit | d27187b158d7e3f92180b1f2ab79b048dc5318a5 (patch) | |
tree | 96b70f75d4f4e9cd06e8bd617c70c9eaf0c5ec06 /vcl/inc/win/salprn.h | |
parent | e4913a56c07914708d8272ae211e23b73349e673 (diff) |
vcl:use unique_ptr<SalWinGraphics> in WinSalPrinter
to replace plain SalWinGraphics pointer, and get rid
of delete.
Change-Id: If06df98a8ebfdf5797bddfefa37647522b8e711b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123365
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/win/salprn.h')
-rw-r--r-- | vcl/inc/win/salprn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/win/salprn.h b/vcl/inc/win/salprn.h index 43eaa520c23d..2d02aa5b0e54 100644 --- a/vcl/inc/win/salprn.h +++ b/vcl/inc/win/salprn.h @@ -78,7 +78,7 @@ public: class WinSalPrinter : public SalPrinter { public: - WinSalGraphics* mpGraphics; // current Printer graphics + std::unique_ptr<WinSalGraphics> mxGraphics; // current Printer graphics WinSalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter WinSalPrinter* mpNextPrinter; // next printing printer HDC mhDC; // printer hdc |