summaryrefslogtreecommitdiff
path: root/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-08-23 20:47:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-23 20:47:16 +0000
commit3b45012d57884b06915eb5a1f54fbba04a45e807 (patch)
treed338ee678993d9192ca1d7419b7f1e63e9bfb818 /fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp
parente919ec18fc0b008241e5e5371d5762e9fe89de6f (diff)
downloadpdfium-3b45012d57884b06915eb5a1f54fbba04a45e807.tar.xz
Remove CBC_BarcodeMatrix::m_matrixOut and just return the bit array.
Change-Id: I12893784321f92e5cac2b80653897007b6e63c7e Reviewed-on: https://pdfium-review.googlesource.com/41111 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp')
-rw-r--r--fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp b/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp
index 1d05486f30..70e7cd9598 100644
--- a/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp
+++ b/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp
@@ -33,12 +33,12 @@ CBC_BarcodeMatrix::CBC_BarcodeMatrix(size_t width, size_t height)
CBC_BarcodeMatrix::~CBC_BarcodeMatrix() {}
-std::vector<uint8_t>& CBC_BarcodeMatrix::getMatrix() {
- m_matrixOut.resize(m_width * m_height);
+std::vector<uint8_t> CBC_BarcodeMatrix::toBitArray() {
+ std::vector<uint8_t> bitArray(m_width * m_height);
for (size_t i = 0; i < m_height; ++i) {
std::vector<uint8_t>& bytearray = m_matrix[i]->getRow();
for (size_t j = 0; j < m_width; ++j)
- m_matrixOut[i * m_width + j] = bytearray[j];
+ bitArray[i * m_width + j] = bytearray[j];
}
- return m_matrixOut;
+ return bitArray;
}