summaryrefslogtreecommitdiff
path: root/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp
diff options
context:
space:
mode:
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;
}