summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_qrcode.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-03 16:40:51 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-04 19:04:37 +0000
commit03d58937248fa244cbf02a3d38d430a513500311 (patch)
tree9ea96b01b0f2f2464bd9d5c49e76dd8e0466a8b0 /fxbarcode/cbc_qrcode.h
parentc3202a95773d7a2c95038ad45c5ba2c9e095e67b (diff)
downloadpdfium-03d58937248fa244cbf02a3d38d430a513500311.tar.xz
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 <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/cbc_qrcode.h')
-rw-r--r--fxbarcode/cbc_qrcode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fxbarcode/cbc_qrcode.h b/fxbarcode/cbc_qrcode.h
index f41c3507ee..d8d871203d 100644
--- a/fxbarcode/cbc_qrcode.h
+++ b/fxbarcode/cbc_qrcode.h
@@ -12,6 +12,8 @@
#include "core/fxge/fx_dib.h"
#include "fxbarcode/cbc_codebase.h"
+class CBC_QRCodeWriter;
+
class CBC_QRCode : public CBC_CodeBase {
public:
CBC_QRCode();
@@ -28,8 +30,10 @@ class CBC_QRCode : public CBC_CodeBase {
int32_t& e) override;
BC_TYPE GetType() override;
- bool SetVersion(int32_t version);
bool SetErrorCorrectionLevel(int32_t level);
+
+ private:
+ CBC_QRCodeWriter* writer();
};
#endif // FXBARCODE_CBC_QRCODE_H_