summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-16 12:29:07 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-16 12:29:07 -0700
commita26153440b46b3b37b7e81435debb296f22769f4 (patch)
tree37b3073d15af7ae2850b5a02be87123feb54a054 /xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp
parent8320ee28f24615d1d619a5db1b7c235ea6f91dde (diff)
downloadpdfium-a26153440b46b3b37b7e81435debb296f22769f4.tar.xz
Remove barcode reading code.
We never read barcodes, we only write them. Remove code related to barcode reading. Review-Url: https://codereview.chromium.org/2071633002
Diffstat (limited to 'xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp')
-rw-r--r--xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp b/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp
index 8e1d6edb70..c9f16cafd1 100644
--- a/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp
+++ b/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp
@@ -20,14 +20,15 @@
* limitations under the License.
*/
-#include "xfa/fxbarcode/BC_Reader.h"
#include "xfa/fxbarcode/BC_TwoDimWriter.h"
#include "xfa/fxbarcode/common/BC_CommonByteMatrix.h"
-#include "xfa/fxbarcode/qrcode/BC_QRCodeReader.h"
-#include "xfa/fxbarcode/qrcode/BC_QRCodeWriter.h"
+#include "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h"
#include "xfa/fxbarcode/qrcode/BC_QRCoder.h"
#include "xfa/fxbarcode/qrcode/BC_QRCoderEncoder.h"
#include "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h"
+#include "xfa/fxbarcode/qrcode/BC_QRCoderMode.h"
+#include "xfa/fxbarcode/qrcode/BC_QRCoderVersion.h"
+#include "xfa/fxbarcode/qrcode/BC_QRCodeWriter.h"
CBC_QRCodeWriter::CBC_QRCodeWriter() {
m_bFixedSize = TRUE;
@@ -36,7 +37,13 @@ CBC_QRCodeWriter::CBC_QRCodeWriter() {
}
CBC_QRCodeWriter::~CBC_QRCodeWriter() {}
void CBC_QRCodeWriter::ReleaseAll() {
- CBC_QRCodeReader::ReleaseAll();
+ delete CBC_ReedSolomonGF256::QRCodeFild;
+ CBC_ReedSolomonGF256::QRCodeFild = nullptr;
+ delete CBC_ReedSolomonGF256::DataMatrixField;
+ CBC_ReedSolomonGF256::DataMatrixField = nullptr;
+ CBC_QRCoderMode::Destroy();
+ CBC_QRCoderErrorCorrectionLevel::Destroy();
+ CBC_QRCoderVersion::Destroy();
}
FX_BOOL CBC_QRCodeWriter::SetVersion(int32_t version) {
if (version < 0 || version > 40) {