From 8a24b25ee0b08128b28dfae0ee86b8348a51b40b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 6 Apr 2017 14:23:26 -0700 Subject: Clean up CBC_QRCoderVersion and friends. Change-Id: Iff738c99fb4fe38d35515c280057b489624d734f Reviewed-on: https://pdfium-review.googlesource.com/3752 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fxbarcode/qrcode/BC_QRCoder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fxbarcode/qrcode/BC_QRCoder.h') diff --git a/fxbarcode/qrcode/BC_QRCoder.h b/fxbarcode/qrcode/BC_QRCoder.h index 0925a8e5cd..adeae6c521 100644 --- a/fxbarcode/qrcode/BC_QRCoder.h +++ b/fxbarcode/qrcode/BC_QRCoder.h @@ -23,7 +23,7 @@ class CBC_QRCoder { static bool IsValidMaskPattern(int32_t maskPattern); CBC_QRCoderMode* GetMode() const; - CBC_QRCoderErrorCorrectionLevel* GetECLevel() const; + const CBC_QRCoderErrorCorrectionLevel* GetECLevel() const; int32_t GetVersion() const; int32_t GetMatrixWidth() const; int32_t GetMaskPattern() const; @@ -37,7 +37,7 @@ class CBC_QRCoder { bool IsValid(); void SetMode(CBC_QRCoderMode* value); - void SetECLevel(CBC_QRCoderErrorCorrectionLevel* ecLevel); + void SetECLevel(const CBC_QRCoderErrorCorrectionLevel* ecLevel); void SetVersion(int32_t version); void SetMatrixWidth(int32_t width); void SetMaskPattern(int32_t pattern); @@ -49,7 +49,7 @@ class CBC_QRCoder { private: CBC_QRCoderMode* m_mode; - CBC_QRCoderErrorCorrectionLevel* m_ecLevel; + const CBC_QRCoderErrorCorrectionLevel* m_ecLevel; int32_t m_version; int32_t m_matrixWidth; int32_t m_maskPattern; -- cgit v1.2.3