summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_codabar.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-09-17 18:10:36 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-17 18:10:36 +0000
commitc5709dd345c748016a637b2104544895223f8fc7 (patch)
tree1a6b5c2a7ba56eb6132825520816e1102fc2292d /fxbarcode/cbc_codabar.h
parent4473800c17b53bae6cf97345952f0a29cdde0907 (diff)
downloadpdfium-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_codabar.h')
-rw-r--r--fxbarcode/cbc_codabar.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/fxbarcode/cbc_codabar.h b/fxbarcode/cbc_codabar.h
index 036c65f829..7fc518b80f 100644
--- a/fxbarcode/cbc_codabar.h
+++ b/fxbarcode/cbc_codabar.h
@@ -20,15 +20,14 @@ class CBC_Codabar final : public CBC_OneCode {
~CBC_Codabar() override;
// CBC_OneCode:
+ BC_TYPE GetType() override;
bool Encode(const WideStringView& contents) override;
bool RenderDevice(CFX_RenderDevice* device,
const CFX_Matrix* matrix) override;
- BC_TYPE GetType() override;
-
- bool SetStartChar(char start);
- bool SetEndChar(char end);
- bool SetTextLocation(BC_TEXT_LOC location);
- bool SetWideNarrowRatio(int8_t ratio);
+ bool SetTextLocation(BC_TEXT_LOC location) override;
+ bool SetWideNarrowRatio(int8_t ratio) override;
+ bool SetStartChar(char start) override;
+ bool SetEndChar(char end) override;
private:
CBC_OnedCodaBarWriter* GetOnedCodaBarWriter();