From 03d58937248fa244cbf02a3d38d430a513500311 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 3 Apr 2017 16:40:51 -0700 Subject: Clean up QRCoderEncoder and friends. Remove a bunch of unused code, including gotos. Fix some potential memory leaks. Change-Id: Ia2775e2ab176f4741b765e259a24a293a5717394 Reviewed-on: https://pdfium-review.googlesource.com/3560 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- fxbarcode/qrcode/BC_QRCoderBlockPair.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fxbarcode/qrcode/BC_QRCoderBlockPair.h') diff --git a/fxbarcode/qrcode/BC_QRCoderBlockPair.h b/fxbarcode/qrcode/BC_QRCoderBlockPair.h index 7c24d9f5ec..9d571f3410 100644 --- a/fxbarcode/qrcode/BC_QRCoderBlockPair.h +++ b/fxbarcode/qrcode/BC_QRCoderBlockPair.h @@ -13,12 +13,13 @@ class CBC_CommonByteArray; class CBC_QRCoderBlockPair { public: - CBC_QRCoderBlockPair(std::unique_ptr data, - std::unique_ptr errorCorrection); - virtual ~CBC_QRCoderBlockPair(); + CBC_QRCoderBlockPair(); + ~CBC_QRCoderBlockPair(); const CBC_CommonByteArray* GetDataBytes() const; const CBC_CommonByteArray* GetErrorCorrectionBytes() const; + void SetData(std::unique_ptr data, + std::unique_ptr errorCorrection); private: std::unique_ptr m_dataBytes; -- cgit v1.2.3