summaryrefslogtreecommitdiff
path: root/fxbarcode/qrcode/BC_QRCoderECBlocks.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-06 14:23:26 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-06 23:30:04 +0000
commit8a24b25ee0b08128b28dfae0ee86b8348a51b40b (patch)
treea1dcaba3bddca1316bb9ba8fb9e2c0e0b1242301 /fxbarcode/qrcode/BC_QRCoderECBlocks.h
parentc758d9dd3f94c2dee89e7fdd50195af08f7e456c (diff)
downloadpdfium-8a24b25ee0b08128b28dfae0ee86b8348a51b40b.tar.xz
Clean up CBC_QRCoderVersion and friends.
Change-Id: Iff738c99fb4fe38d35515c280057b489624d734f Reviewed-on: https://pdfium-review.googlesource.com/3752 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/qrcode/BC_QRCoderECBlocks.h')
-rw-r--r--fxbarcode/qrcode/BC_QRCoderECBlocks.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/fxbarcode/qrcode/BC_QRCoderECBlocks.h b/fxbarcode/qrcode/BC_QRCoderECBlocks.h
index bf4f76dc84..4ea7a7abd5 100644
--- a/fxbarcode/qrcode/BC_QRCoderECBlocks.h
+++ b/fxbarcode/qrcode/BC_QRCoderECBlocks.h
@@ -11,24 +11,21 @@
#include "core/fxcrt/fx_basic.h"
-class CBC_QRCoderECB;
+struct CBC_QRCoderECBlockData;
class CBC_QRCoderECBlocks {
public:
- CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock, CBC_QRCoderECB* ecBlocks);
- CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock,
- CBC_QRCoderECB* ecBlocks1,
- CBC_QRCoderECB* ecBlocks2);
+ explicit CBC_QRCoderECBlocks(const CBC_QRCoderECBlockData& data);
~CBC_QRCoderECBlocks();
- int32_t GetECCodeWordsPerBlock() const;
int32_t GetNumBlocks() const;
int32_t GetTotalECCodeWords() const;
- std::vector<CBC_QRCoderECB*>* GetECBlocks();
+ int32_t GetTotalDataCodeWords() const;
private:
- int32_t m_ecCodeWordsPerBlock;
- std::vector<CBC_QRCoderECB*> m_ecBlocksArray;
+ int32_t GetECCodeWordsPerBlock() const;
+
+ const CBC_QRCoderECBlockData& m_data;
};
#endif // FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_