diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-22 06:03:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-22 06:03:28 +0000 |
commit | 4993f558f9df8f85404d4bca71808542d5a18266 (patch) | |
tree | 9a993a524b7bc642e63d367c34e490a084c6bf77 /fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp | |
parent | 36f4841d67037ce640273ce357d2d33f3e8567c3 (diff) | |
download | pdfium-4993f558f9df8f85404d4bca71808542d5a18266.tar.xz |
Remove CBC_CommonByteArray and CBC_QRCoderBlockPair.
CBC_CommonByteArray is just a std::vector. CBC_QRCoderBlockPair is just
a struct with two vectors.
Change-Id: I9e5fdab18f07a1cff7ee486dfce619f9391c80dc
Reviewed-on: https://pdfium-review.googlesource.com/42454
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Wei Li <weili@chromium.org>
Diffstat (limited to 'fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp')
-rw-r--r-- | fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp b/fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp index 2be74c7fa3..8ce4ebf97d 100644 --- a/fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp +++ b/fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp @@ -30,15 +30,13 @@ #include "third_party/base/ptr_util.h" CBC_ReedSolomonEncoder::CBC_ReedSolomonEncoder(CBC_ReedSolomonGF256* field) - : m_field(field) {} - -CBC_ReedSolomonEncoder::~CBC_ReedSolomonEncoder() {} - -void CBC_ReedSolomonEncoder::Init() { + : m_field(field) { m_cachedGenerators.push_back( pdfium::MakeUnique<CBC_ReedSolomonGF256Poly>(m_field.Get(), 1)); } +CBC_ReedSolomonEncoder::~CBC_ReedSolomonEncoder() {} + CBC_ReedSolomonGF256Poly* CBC_ReedSolomonEncoder::BuildGenerator( size_t degree) { if (degree >= m_cachedGenerators.size()) { |