summaryrefslogtreecommitdiff
path: root/include/vcl/outdevstate.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-23 11:52:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-26 08:44:58 +0200
commit38e7aef0fad58dcf2d59a7c219b7858d6c4cd771 (patch)
tree7232362e2afea7ae387c2da7c07ff4af24d5e97a /include/vcl/outdevstate.hxx
parentbea081b5099786e5fcadddd72c247b9a9488286a (diff)
use boost::optional in OutDevState
Change-Id: I83fb85fcba6cd2a5dc4f99fdfd3238d72afb7bc2 Reviewed-on: https://gerrit.libreoffice.org/51770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/outdevstate.hxx')
-rw-r--r--include/vcl/outdevstate.hxx17
1 files changed, 9 insertions, 8 deletions
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 <tools/fontenum.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
+#include <boost/optional.hpp>
class Color;
@@ -80,17 +81,17 @@ public:
OutDevState();
~OutDevState();
- std::unique_ptr<MapMode> mpMapMode;
+ boost::optional<MapMode> mpMapMode;
bool mbMapActive;
std::unique_ptr<vcl::Region> mpClipRegion;
- std::unique_ptr<Color> mpLineColor;
- std::unique_ptr<Color> mpFillColor;
+ boost::optional<Color> mpLineColor;
+ boost::optional<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;
+ boost::optional<Color> mpTextColor;
+ boost::optional<Color> mpTextFillColor;
+ boost::optional<Color> mpTextLineColor;
+ boost::optional<Color> mpOverlineColor;
+ boost::optional<Point> mpRefPoint;
TextAlign meTextAlign;
RasterOp meRasterOp;
ComplexTextLayoutFlags mnTextLayoutMode;