From 1839a4bc01a6c6fe6a22474d2c6d4f09a9772371 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 29 Jun 2018 20:38:59 +0000 Subject: Clean up CLcmsCmm. Make members const and private. Fix nits. Change-Id: I945bc26438f8fbd6904dc1b15513ab9e51170dc7 Reviewed-on: https://pdfium-review.googlesource.com/36631 Commit-Queue: Lei Zhang Reviewed-by: Henrique Nakashima --- core/fxcodec/codec/ccodec_iccmodule.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'core/fxcodec/codec/ccodec_iccmodule.h') diff --git a/core/fxcodec/codec/ccodec_iccmodule.h b/core/fxcodec/codec/ccodec_iccmodule.h index 0d60c3fd4a..38d9ec8686 100644 --- a/core/fxcodec/codec/ccodec_iccmodule.h +++ b/core/fxcodec/codec/ccodec_iccmodule.h @@ -22,15 +22,21 @@ class CLcmsCmm { public: - CLcmsCmm(int srcComponents, - cmsHTRANSFORM transform, - bool isLab, + CLcmsCmm(cmsHTRANSFORM transform, + int srcComponents, + bool bIsLab, bool bNormal); ~CLcmsCmm(); - cmsHTRANSFORM m_hTransform; - int m_nSrcComponents; - bool m_bLab; + cmsHTRANSFORM transform() const { return m_hTransform; } + int components() const { return m_nSrcComponents; } + bool IsLab() const { return m_bLab; } + bool IsNormal() const { return m_bNormal; } + + private: + const cmsHTRANSFORM m_hTransform; + const int m_nSrcComponents; + const bool m_bLab; const bool m_bNormal; }; @@ -52,7 +58,7 @@ class CCodec_IccModule { void SetComponents(uint32_t nComponents) { m_nComponents = nComponents; } protected: - uint32_t m_nComponents; + uint32_t m_nComponents = 0; }; #endif // CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ -- cgit v1.2.3