From 7a46940d0a8782ed40b7e8182d883b02eb69bc40 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Tue, 23 Oct 2018 11:00:31 +0000 Subject: Constify OutputDevice::meOutDevType Change-Id: Idfa57c545704626a8b8b7405cd32c49666a04746 Reviewed-on: https://gerrit.libreoffice.org/62255 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski --- include/vcl/outdev.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index c9f9d06db17c..72d5ae57dca9 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -298,7 +298,7 @@ namespace o3tl template<> struct typed_flags : is_typed_flags {}; } -enum OutDevType { OUTDEV_DONTKNOW, OUTDEV_WINDOW, OUTDEV_PRINTER, OUTDEV_VIRDEV }; +enum OutDevType { OUTDEV_WINDOW, OUTDEV_PRINTER, OUTDEV_VIRDEV }; enum class OutDevViewType { DontKnow, PrintPreview, SlideShow }; @@ -379,7 +379,7 @@ private: ComplexTextLayoutFlags mnTextLayoutMode; ImplMapRes maMapRes; ImplThresholdRes maThresRes; - OutDevType meOutDevType; + const OutDevType meOutDevType; OutDevViewType meOutDevViewType; vcl::Region maRegion; // contains the clip region, see SetClipRegion(...) Color maLineColor; @@ -421,7 +421,7 @@ private: ///@{ protected: - OutputDevice(); + OutputDevice(OutDevType eOutDevType); virtual ~OutputDevice() override; virtual void dispose() override; -- cgit