diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-26 21:02:52 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-26 21:02:52 +0000 |
commit | 0bc02c152bd0c178a5946196e2054a5cdc7650f4 (patch) | |
tree | 4a651b86f0d240c4996ea77f041274d241e59c93 /fxbarcode/datamatrix | |
parent | 611431decd9a5b7dd456355fe763b2dee9c2a1a1 (diff) | |
download | pdfium-0bc02c152bd0c178a5946196e2054a5cdc7650f4.tar.xz |
Add some more missing consts.chromium/3356
Get things out of the .data section.
Change-Id: I375cf00186a3d5d8d10f5d147bd4b692f5db3683
Reviewed-on: https://pdfium-review.googlesource.com/27130
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix')
-rw-r--r-- | fxbarcode/datamatrix/BC_ErrorCorrection.cpp | 2 | ||||
-rw-r--r-- | fxbarcode/datamatrix/BC_ErrorCorrection.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fxbarcode/datamatrix/BC_ErrorCorrection.cpp b/fxbarcode/datamatrix/BC_ErrorCorrection.cpp index 35077ee628..83442645e4 100644 --- a/fxbarcode/datamatrix/BC_ErrorCorrection.cpp +++ b/fxbarcode/datamatrix/BC_ErrorCorrection.cpp @@ -102,9 +102,9 @@ const uint8_t* const FACTORS[16] = { } // namespace -int32_t CBC_ErrorCorrection::MODULO_VALUE = 0x12D; int32_t CBC_ErrorCorrection::LOG[256] = {0}; int32_t CBC_ErrorCorrection::ALOG[256] = {0}; + void CBC_ErrorCorrection::Initialize() { int32_t p = 1; for (int32_t i = 0; i < 255; i++) { diff --git a/fxbarcode/datamatrix/BC_ErrorCorrection.h b/fxbarcode/datamatrix/BC_ErrorCorrection.h index 361b205ef4..ccb83f0b86 100644 --- a/fxbarcode/datamatrix/BC_ErrorCorrection.h +++ b/fxbarcode/datamatrix/BC_ErrorCorrection.h @@ -23,11 +23,11 @@ class CBC_ErrorCorrection { int32_t& e); private: - static int32_t MODULO_VALUE; + static const int32_t MODULO_VALUE = 0x12D; + static int32_t LOG[256]; static int32_t ALOG[256]; - private: static WideString createECCBlock(WideString codewords, int32_t numECWords, int32_t& e); |