diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-05 12:46:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-06 08:23:06 +0200 |
commit | 6469b6134e71f6fc2debd8c8812e2dc9ad8e60c3 (patch) | |
tree | f0737df448a342df972947e7e969042e69407bce /include/vcl | |
parent | a2c665e4dd73007fe7f0eda2de31db8b768f1df9 (diff) |
simplify and flatten OutDevStateStack
Change-Id: Ic2ee5c2e122244e11770ab5fb73f65800828439a
Reviewed-on: https://gerrit.libreoffice.org/75128
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/outdev.hxx | 4 | ||||
-rw-r--r-- | include/vcl/outdevstate.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index cf1d5c09c685..b3159396f9a4 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -322,8 +322,8 @@ private: mutable std::shared_ptr<PhysicalFontCollection> mxFontCollection; mutable std::unique_ptr<ImplDeviceFontList> mpDeviceFontList; mutable std::unique_ptr<ImplDeviceFontSizeList> mpDeviceFontSizeList; - std::unique_ptr<OutDevStateStack> mpOutDevStateStack; - std::unique_ptr<ImplOutDevData> mpOutDevData; + std::vector<OutDevState> maOutDevStateStack; + std::unique_ptr<ImplOutDevData> mpOutDevData; std::vector< VCLXGraphics* >* mpUnoGraphicsList; vcl::ExtOutDevData* mpExtOutDevData; diff --git a/include/vcl/outdevstate.hxx b/include/vcl/outdevstate.hxx index d3c469eff513..493855248db0 100644 --- a/include/vcl/outdevstate.hxx +++ b/include/vcl/outdevstate.hxx @@ -75,10 +75,10 @@ namespace o3tl { template<> struct typed_flags<ComplexTextLayoutFlags> : is_typed_flags<ComplexTextLayoutFlags, 0x000f> {}; } -class OutDevState +struct OutDevState { -public: OutDevState(); + OutDevState(OutDevState&&); ~OutDevState(); boost::optional<MapMode> mpMapMode; |