summaryrefslogtreecommitdiff
path: root/fxbarcode/oned/BC_OnedEAN8Writer.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-09-17 17:42:17 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-17 17:42:17 +0000
commit4473800c17b53bae6cf97345952f0a29cdde0907 (patch)
treeebd7882126deb7628b1b9e9d4d977476e36a9ed8 /fxbarcode/oned/BC_OnedEAN8Writer.h
parent61ea984efbfccce24e489e2d7095891959103048 (diff)
downloadpdfium-4473800c17b53bae6cf97345952f0a29cdde0907.tar.xz
Initialize some 1D barcode classes in the header.
Change-Id: Iaeb7f43e442ace403f1522268e63b1a59f223a9d Reviewed-on: https://pdfium-review.googlesource.com/42599 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/oned/BC_OnedEAN8Writer.h')
-rw-r--r--fxbarcode/oned/BC_OnedEAN8Writer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fxbarcode/oned/BC_OnedEAN8Writer.h b/fxbarcode/oned/BC_OnedEAN8Writer.h
index dfef89e1ee..269156a25e 100644
--- a/fxbarcode/oned/BC_OnedEAN8Writer.h
+++ b/fxbarcode/oned/BC_OnedEAN8Writer.h
@@ -42,7 +42,8 @@ class CBC_OnedEAN8Writer final : public CBC_OneDimWriter {
int32_t multiple) override;
private:
- int32_t m_codeWidth;
+ static constexpr int32_t kDefaultCodeWidth = 3 + (7 * 4) + 5 + (7 * 4) + 3;
+ int32_t m_codeWidth = kDefaultCodeWidth;
};
#endif // FXBARCODE_ONED_BC_ONEDEAN8WRITER_H_