summaryrefslogtreecommitdiff
path: root/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/qrcode/BC_QRCoderBlockPair.cpp')
-rw-r--r--fxbarcode/qrcode/BC_QRCoderBlockPair.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp b/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp
index 9d2a1f8375..9ac93e9b14 100644
--- a/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp
+++ b/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp
@@ -26,11 +26,7 @@
#include "fxbarcode/common/BC_CommonByteArray.h"
-CBC_QRCoderBlockPair::CBC_QRCoderBlockPair(
- std::unique_ptr<CBC_CommonByteArray> data,
- std::unique_ptr<CBC_CommonByteArray> errorCorrection)
- : m_dataBytes(std::move(data)),
- m_errorCorrectionBytes(std::move(errorCorrection)) {}
+CBC_QRCoderBlockPair::CBC_QRCoderBlockPair() {}
CBC_QRCoderBlockPair::~CBC_QRCoderBlockPair() {}
@@ -42,3 +38,10 @@ const CBC_CommonByteArray* CBC_QRCoderBlockPair::GetErrorCorrectionBytes()
const {
return m_errorCorrectionBytes.get();
}
+
+void CBC_QRCoderBlockPair::SetData(
+ std::unique_ptr<CBC_CommonByteArray> data,
+ std::unique_ptr<CBC_CommonByteArray> errorCorrection) {
+ m_dataBytes = std::move(data);
+ m_errorCorrectionBytes = std::move(errorCorrection);
+}