summaryrefslogtreecommitdiff
path: root/fxbarcode/qrcode/BC_QRCoderMode.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-06 14:23:26 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-06 23:30:04 +0000
commit8a24b25ee0b08128b28dfae0ee86b8348a51b40b (patch)
treea1dcaba3bddca1316bb9ba8fb9e2c0e0b1242301 /fxbarcode/qrcode/BC_QRCoderMode.cpp
parentc758d9dd3f94c2dee89e7fdd50195af08f7e456c (diff)
downloadpdfium-8a24b25ee0b08128b28dfae0ee86b8348a51b40b.tar.xz
Clean up CBC_QRCoderVersion and friends.
Change-Id: Iff738c99fb4fe38d35515c280057b489624d734f Reviewed-on: https://pdfium-review.googlesource.com/3752 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/qrcode/BC_QRCoderMode.cpp')
-rw-r--r--fxbarcode/qrcode/BC_QRCoderMode.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fxbarcode/qrcode/BC_QRCoderMode.cpp b/fxbarcode/qrcode/BC_QRCoderMode.cpp
index 3127145465..5f9ce5bf25 100644
--- a/fxbarcode/qrcode/BC_QRCoderMode.cpp
+++ b/fxbarcode/qrcode/BC_QRCoderMode.cpp
@@ -24,7 +24,6 @@
#include <utility>
-#include "fxbarcode/qrcode/BC_QRCoderVersion.h"
#include "fxbarcode/utils.h"
CBC_QRCoderMode* CBC_QRCoderMode::sBYTE = nullptr;
@@ -112,13 +111,12 @@ CFX_ByteString CBC_QRCoderMode::GetName() const {
return m_name;
}
-int32_t CBC_QRCoderMode::GetCharacterCountBits(CBC_QRCoderVersion* version,
+int32_t CBC_QRCoderMode::GetCharacterCountBits(int32_t number,
int32_t& e) const {
if (m_characterCountBitsForVersions.empty()) {
e = BCExceptionCharacterNotThisMode;
return 0;
}
- int32_t number = version->GetVersionNumber();
int32_t offset;
if (number <= 9) {
offset = 0;