diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-15 09:46:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 10:16:35 +0200 |
commit | 7304d9622927c25a7851131f46f81073ebfffda3 (patch) | |
tree | 13e6e7398e95fbddbe7a5da592ad634034a202b0 /include | |
parent | 8ff202bf4bae019fbd2183207936b1d2ef1f6ce1 (diff) |
loplugin:useuniqueptr in OutDevState
Change-Id: I9e29ca57eb3f00987dbac74cf7da2222f5b6d869
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdevstate.hxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/vcl/outdevstate.hxx b/include/vcl/outdevstate.hxx index 94cf877e03d0..d58faac00c52 100644 --- a/include/vcl/outdevstate.hxx +++ b/include/vcl/outdevstate.hxx @@ -29,6 +29,7 @@ #include <tools/gen.hxx> #include <tools/fontenum.hxx> #include <o3tl/typed_flags_set.hxx> +#include <memory> class Color; @@ -79,17 +80,17 @@ public: OutDevState(); ~OutDevState(); - MapMode* mpMapMode; + std::unique_ptr<MapMode> mpMapMode; bool mbMapActive; - vcl::Region* mpClipRegion; - Color* mpLineColor; - Color* mpFillColor; - vcl::Font* mpFont; - Color* mpTextColor; - Color* mpTextFillColor; - Color* mpTextLineColor; - Color* mpOverlineColor; - Point* mpRefPoint; + std::unique_ptr<vcl::Region> mpClipRegion; + std::unique_ptr<Color> mpLineColor; + std::unique_ptr<Color> mpFillColor; + std::unique_ptr<vcl::Font> mpFont; + std::unique_ptr<Color> mpTextColor; + std::unique_ptr<Color> mpTextFillColor; + std::unique_ptr<Color> mpTextLineColor; + std::unique_ptr<Color> mpOverlineColor; + std::unique_ptr<Point> mpRefPoint; TextAlign meTextAlign; RasterOp meRasterOp; ComplexTextLayoutFlags mnTextLayoutMode; |