From b0f33f284832a49026787f9ee07750dd04fedc4d Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 26 Jan 2018 15:31:49 +0000 Subject: Mark some fxge class members as const. Change-Id: I063690047274372b449726cd5d2c479bad0672f4 Reviewed-on: https://pdfium-review.googlesource.com/24150 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- core/fxge/agg/fx_agg_driver.h | 4 ++-- core/fxge/win32/win32_int.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'core/fxge') diff --git a/core/fxge/agg/fx_agg_driver.h b/core/fxge/agg/fx_agg_driver.h index 92500c3df6..41b97da2fb 100644 --- a/core/fxge/agg/fx_agg_driver.h +++ b/core/fxge/agg/fx_agg_driver.h @@ -116,9 +116,9 @@ class CFX_AggDeviceDriver : public IFX_RenderDeviceDriver { void* m_pPlatformGraphics; #endif int m_FillFlags; - bool m_bRgbByteOrder; + const bool m_bRgbByteOrder; RetainPtr m_pOriDevice; - bool m_bGroupKnockout; + const bool m_bGroupKnockout; }; #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h index d4f2597033..8bc8290845 100644 --- a/core/fxge/win32/win32_int.h +++ b/core/fxge/win32/win32_int.h @@ -323,7 +323,7 @@ class CPSPrinterDriver : public IFX_RenderDeviceDriver { uint32_t color) override; HDC m_hDC; - bool m_bCmykOutput; + const bool m_bCmykOutput; int m_Width; int m_Height; int m_nBitsPerPixel; @@ -386,11 +386,11 @@ class CTextOnlyPrinterDriver : public IFX_RenderDeviceDriver { uint32_t color) override; HDC m_hDC; - int m_Width; - int m_Height; + const int m_Width; + const int m_Height; int m_nBitsPerPixel; - int m_HorzSize; - int m_VertSize; + const int m_HorzSize; + const int m_VertSize; float m_OriginY; bool m_SetOrigin; }; -- cgit v1.2.3