diff options
author | Lei Zhang <thestig@chromium.org> | 2017-04-04 16:15:13 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-04 23:35:59 +0000 |
commit | b2a40475ade2fe34a406472e53787bdac5a6950a (patch) | |
tree | 70676e292db220552549a427a662a9c88241ff1a /fxbarcode/common/BC_CommonByteArray.cpp | |
parent | 20a909e655147e21f966b95af6b683d85736c8c2 (diff) | |
download | pdfium-b2a40475ade2fe34a406472e53787bdac5a6950a.tar.xz |
Clean up QRCoderBitVector.
Use std::vector and return booleans results when possible.
Change-Id: If3ce4559f137fb449fd1ab818750558a1b5f8df0
Reviewed-on: https://pdfium-review.googlesource.com/3561
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/common/BC_CommonByteArray.cpp')
-rw-r--r-- | fxbarcode/common/BC_CommonByteArray.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fxbarcode/common/BC_CommonByteArray.cpp b/fxbarcode/common/BC_CommonByteArray.cpp index b670ba3b75..80ae07d1ad 100644 --- a/fxbarcode/common/BC_CommonByteArray.cpp +++ b/fxbarcode/common/BC_CommonByteArray.cpp @@ -78,7 +78,9 @@ void CBC_CommonByteArray::Reserve(int32_t capacity) { m_size = capacity; } } -void CBC_CommonByteArray::Set(uint8_t* source, int32_t offset, int32_t count) { +void CBC_CommonByteArray::Set(const uint8_t* source, + int32_t offset, + int32_t count) { FX_Free(m_bytes); m_bytes = FX_Alloc(uint8_t, count); m_size = count; |