diff options
author | tsepez <tsepez@chromium.org> | 2016-04-28 14:56:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-28 14:56:27 -0700 |
commit | aef780db30c434e1d681d81852fb13160e72ed1e (patch) | |
tree | 24810c630b3b27649c0dd856d795c0069ca5bcd6 /xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h | |
parent | 8e957baa851aed4b02511d04a66c0f95387d1e10 (diff) | |
download | pdfium-aef780db30c434e1d681d81852fb13160e72ed1e.tar.xz |
Replace CFX_PtrArray with typesafe CFX_ArrayTemplate, part 4
Review-Url: https://codereview.chromium.org/1932703003
Diffstat (limited to 'xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h')
-rw-r--r-- | xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h b/xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h index 5209a5f8d8..cd1539a7b7 100644 --- a/xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h +++ b/xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h @@ -12,20 +12,21 @@ class CBC_QRCoderECB; class CBC_QRCoderECBlocks { - private: - int32_t m_ecCodeWordsPerBlock; - CFX_PtrArray m_ecBlocks; - public: CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock, CBC_QRCoderECB* ecBlocks); CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock, CBC_QRCoderECB* ecBlocks1, CBC_QRCoderECB* ecBlocks2); - virtual ~CBC_QRCoderECBlocks(); - int32_t GetECCodeWordsPerBlock(); - int32_t GetNumBlocks(); - int32_t GetTotalECCodeWords(); - CFX_PtrArray* GetECBlocks(); + ~CBC_QRCoderECBlocks(); + + int32_t GetECCodeWordsPerBlock() const; + int32_t GetNumBlocks() const; + int32_t GetTotalECCodeWords() const; + CFX_ArrayTemplate<CBC_QRCoderECB*>* GetECBlocks(); + + private: + int32_t m_ecCodeWordsPerBlock; + CFX_ArrayTemplate<CBC_QRCoderECB*> m_ecBlocksArray; }; #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_ |