diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-03-28 12:06:45 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-28 19:22:50 +0000 |
commit | 8b6186f89002099d406508acecf4bccc4ef64c95 (patch) | |
tree | df104ee415cfa90a53a23b88f1f66c3c2fd8d84e /xfa/fxbarcode/common/BC_CommonBitArray.h | |
parent | b0baff546bdcd911c80007829d9af5f05d0c04b0 (diff) | |
download | pdfium-8b6186f89002099d406508acecf4bccc4ef64c95.tar.xz |
Remove CFX_ArrayTemplate from FX barcode code.
This is now the last usage in pdfium, types to be removed
in a follow-on CL.
Change-Id: I16f67eb3eb99f21bb231829168203be125129ad7
Reviewed-on: https://pdfium-review.googlesource.com/3247
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxbarcode/common/BC_CommonBitArray.h')
-rw-r--r-- | xfa/fxbarcode/common/BC_CommonBitArray.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/xfa/fxbarcode/common/BC_CommonBitArray.h b/xfa/fxbarcode/common/BC_CommonBitArray.h index 6ad8ab321d..841ca99149 100644 --- a/xfa/fxbarcode/common/BC_CommonBitArray.h +++ b/xfa/fxbarcode/common/BC_CommonBitArray.h @@ -7,6 +7,8 @@ #ifndef XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_ #define XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_ +#include <vector> + #include "core/fxcrt/fx_basic.h" class CBC_CommonBitArray { @@ -16,21 +18,21 @@ class CBC_CommonBitArray { CBC_CommonBitArray(); virtual ~CBC_CommonBitArray(); - int32_t GetSize(); - CFX_ArrayTemplate<int32_t>& GetBits(); - int32_t GetSizeInBytes(); - bool Get(int32_t i); - void Set(int32_t i); - void Flip(int32_t i); - void SetBulk(int32_t i, int32_t newBits); - bool IsRange(int32_t start, int32_t end, bool value, int32_t& e); + size_t GetSize(); + size_t GetSizeInBytes(); + std::vector<int32_t>& GetBits(); int32_t* GetBitArray(); + bool Get(size_t i); + void Set(size_t i); + void Flip(size_t i); + void SetBulk(size_t i, int32_t newBits); + bool IsRange(size_t start, size_t end, bool value, int32_t& e); void Reverse(); void Clear(); private: - int32_t m_size; - CFX_ArrayTemplate<int32_t> m_bits; + size_t m_size; + std::vector<int32_t> m_bits; }; #endif // XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_ |