From 38e7aef0fad58dcf2d59a7c219b7858d6c4cd771 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Mar 2018 11:52:20 +0200 Subject: use boost::optional in OutDevState Change-Id: I83fb85fcba6cd2a5dc4f99fdfd3238d72afb7bc2 Reviewed-on: https://gerrit.libreoffice.org/51770 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/metaact.hxx | 1 - include/vcl/outdevstate.hxx | 17 +++++++++-------- include/vcl/pdfwriter.hxx | 1 - 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index 9fac991ac19e..930261b5866f 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -36,7 +36,6 @@ #include #include #include -#include class SvStream; enum class DrawTextFlags; diff --git a/include/vcl/outdevstate.hxx b/include/vcl/outdevstate.hxx index d58faac00c52..d1f1ff6726b9 100644 --- a/include/vcl/outdevstate.hxx +++ b/include/vcl/outdevstate.hxx @@ -30,6 +30,7 @@ #include #include #include +#include class Color; @@ -80,17 +81,17 @@ public: OutDevState(); ~OutDevState(); - std::unique_ptr mpMapMode; + boost::optional mpMapMode; bool mbMapActive; std::unique_ptr mpClipRegion; - std::unique_ptr mpLineColor; - std::unique_ptr mpFillColor; + boost::optional mpLineColor; + boost::optional mpFillColor; std::unique_ptr mpFont; - std::unique_ptr mpTextColor; - std::unique_ptr mpTextFillColor; - std::unique_ptr mpTextLineColor; - std::unique_ptr mpOverlineColor; - std::unique_ptr mpRefPoint; + boost::optional mpTextColor; + boost::optional mpTextFillColor; + boost::optional mpTextLineColor; + boost::optional mpOverlineColor; + boost::optional mpRefPoint; TextAlign meTextAlign; RasterOp meRasterOp; ComplexTextLayoutFlags mnTextLayoutMode; diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 758acdb1f08d..1e38a9f67cb8 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -29,7 +29,6 @@ #include #include #include -#include #include #include -- cgit