diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-17 18:10:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-17 18:10:36 +0000 |
commit | c5709dd345c748016a637b2104544895223f8fc7 (patch) | |
tree | 1a6b5c2a7ba56eb6132825520816e1102fc2292d /fxbarcode/cbc_codebase.cpp | |
parent | 4473800c17b53bae6cf97345952f0a29cdde0907 (diff) | |
download | pdfium-c5709dd345c748016a637b2104544895223f8fc7.tar.xz |
Make CBC_CodeBase::SetTextLocation() virtual.
Do the same for a few other CBC_CodeBase methods, instead of trying to
implement virtual methods manually using memory pointers.
Change-Id: Iec0e3a4f8eabc54962c7ac0a00a1b80b192ff474
Reviewed-on: https://pdfium-review.googlesource.com/42600
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/cbc_codebase.cpp')
-rw-r--r-- | fxbarcode/cbc_codebase.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fxbarcode/cbc_codebase.cpp b/fxbarcode/cbc_codebase.cpp index 2278f931e8..b723f551d5 100644 --- a/fxbarcode/cbc_codebase.cpp +++ b/fxbarcode/cbc_codebase.cpp @@ -30,6 +30,26 @@ CBC_CodeBase::CBC_CodeBase(std::unique_ptr<CBC_Writer> pWriter) CBC_CodeBase::~CBC_CodeBase() {} +bool CBC_CodeBase::SetTextLocation(BC_TEXT_LOC location) { + return false; +} + +bool CBC_CodeBase::SetWideNarrowRatio(int8_t ratio) { + return false; +} + +bool CBC_CodeBase::SetStartChar(char start) { + return false; +} + +bool CBC_CodeBase::SetEndChar(char end) { + return false; +} + +bool CBC_CodeBase::SetErrorCorrectionLevel(int32_t level) { + return false; +} + bool CBC_CodeBase::SetCharEncoding(int32_t encoding) { return m_pBCWriter->SetCharEncoding(encoding); } |