summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-10-23 11:00:31 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2018-10-23 23:28:23 +0200
commit7a46940d0a8782ed40b7e8182d883b02eb69bc40 (patch)
treedcbf8cdf0322820311637fcb670ad3e73fcc40b9 /include
parent9415f3e10274cc4087a72d425a223309d39ede27 (diff)
Constify OutputDevice::meOutDevType
Change-Id: Idfa57c545704626a8b8b7405cd32c49666a04746 Reviewed-on: https://gerrit.libreoffice.org/62255 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/outdev.hxx6
1 files changed, 3 insertions, 3 deletions
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<InvertFlags> : is_typed_flags<InvertFlags, 0x0007> {};
}
-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;