diff options
author | Lei Zhang <thestig@chromium.org> | 2018-01-26 15:31:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-26 15:31:49 +0000 |
commit | b0f33f284832a49026787f9ee07750dd04fedc4d (patch) | |
tree | b3f186005f958455de9c753c60d65c92287fe47b /core | |
parent | 65544d7add9aa3c7facc2df523e12f2d4163ea9b (diff) | |
download | pdfium-b0f33f284832a49026787f9ee07750dd04fedc4d.tar.xz |
Mark some fxge class members as const.
Change-Id: I063690047274372b449726cd5d2c479bad0672f4
Reviewed-on: https://pdfium-review.googlesource.com/24150
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fxge/agg/fx_agg_driver.h | 4 | ||||
-rw-r--r-- | core/fxge/win32/win32_int.h | 10 |
2 files changed, 7 insertions, 7 deletions
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<CFX_DIBitmap> 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; }; |