diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-17 22:22:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-17 22:22:36 +0000 |
commit | 4c3b4aa6d1df54fe02912fed04a08adc6826310f (patch) | |
tree | 29294bd608b815d503abaa218ca940c4f5a562df /fxbarcode/cbc_qrcode.cpp | |
parent | c397a9003207f14e02a09d611d91a6d14a2de771 (diff) | |
download | pdfium-4c3b4aa6d1df54fe02912fed04a08adc6826310f.tar.xz |
Make CBC_CodeBase::SetWideNarrowRatio() not virtual.
Make CBC_Writer::SetWideNarrowRatio() virtual instead. Do the same for
SetStartChar(), SetEndChar(), and SetErrorCorrectionLevel().
Change-Id: I70e87c0e9f8b772331105e57dd26075db3cfcb95
Reviewed-on: https://pdfium-review.googlesource.com/42602
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxbarcode/cbc_qrcode.cpp')
-rw-r--r-- | fxbarcode/cbc_qrcode.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fxbarcode/cbc_qrcode.cpp b/fxbarcode/cbc_qrcode.cpp index 0f3a65ef3a..a5679a0943 100644 --- a/fxbarcode/cbc_qrcode.cpp +++ b/fxbarcode/cbc_qrcode.cpp @@ -31,12 +31,6 @@ CBC_QRCode::CBC_QRCode() CBC_QRCode::~CBC_QRCode() {} -bool CBC_QRCode::SetErrorCorrectionLevel(int32_t level) { - if (level < 0 || level > 3) - return false; - return GetQRCodeWriter()->SetErrorCorrectionLevel(level); -} - bool CBC_QRCode::Encode(const WideStringView& contents) { int32_t outWidth = 0; int32_t outHeight = 0; |