summaryrefslogtreecommitdiff
path: root/fxbarcode/oned
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-09-15 04:31:10 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-15 04:31:10 +0000
commit649bc02a2e2ab886733d7461ece89b4153a01d5f (patch)
treed9c5afedf1dc7267cc1d52bf3b53c32e25b424a1 /fxbarcode/oned
parent0a815ae46f53330b69c585c708a4ebc5b85ecdb4 (diff)
downloadpdfium-649bc02a2e2ab886733d7461ece89b4153a01d5f.tar.xz
Remove FXFM_ENCODING_NONE.
FX_CreateFontEncodingEx() always passes FXFM_ENCODING_NONE. Just get rid of it instead. Change-Id: I417f84d8ae2f10ba874265a92576d3ef8481a9d6 Reviewed-on: https://pdfium-review.googlesource.com/42460 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/oned')
-rw-r--r--fxbarcode/oned/BC_OneDimWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxbarcode/oned/BC_OneDimWriter.cpp b/fxbarcode/oned/BC_OneDimWriter.cpp
index c76817d138..9ad053db28 100644
--- a/fxbarcode/oned/BC_OneDimWriter.cpp
+++ b/fxbarcode/oned/BC_OneDimWriter.cpp
@@ -123,7 +123,7 @@ void CBC_OneDimWriter::CalcTextInfo(const ByteString& text,
int32_t fontSize,
float& charsLen) {
std::unique_ptr<CFX_UnicodeEncodingEx> encoding =
- FX_CreateFontEncodingEx(cFont, FXFM_ENCODING_NONE);
+ FX_CreateFontEncodingEx(cFont);
size_t length = text.GetLength();
uint32_t* pCharCode = FX_Alloc(uint32_t, text.GetLength());