diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-22 18:47:12 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-23 21:17:23 +0000 |
commit | abc83aa862050642a90ed109074a9cf1018fee9b (patch) | |
tree | b842d471c3cc49a0268a0647ca4c574248610ae9 /fxbarcode/datamatrix/BC_EdifactEncoder.cpp | |
parent | e0f1310795f1cf886b9b2a134b28ace9e8fc25ba (diff) | |
download | pdfium-abc83aa862050642a90ed109074a9cf1018fee9b.tar.xz |
Clean up CBC_SymbolInfo.chromium/3109
- Remove rectangular ctor param. It can be derived from dimensions.
- Make members private and add accessors.
- Remove exceptions that cannot occur.
Change-Id: Iec113205241562a0559e594fe257f5b9064ed97e
Reviewed-on: https://pdfium-review.googlesource.com/5737
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix/BC_EdifactEncoder.cpp')
-rw-r--r-- | fxbarcode/datamatrix/BC_EdifactEncoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fxbarcode/datamatrix/BC_EdifactEncoder.cpp b/fxbarcode/datamatrix/BC_EdifactEncoder.cpp index 9231b1e293..cc72a311c9 100644 --- a/fxbarcode/datamatrix/BC_EdifactEncoder.cpp +++ b/fxbarcode/datamatrix/BC_EdifactEncoder.cpp @@ -66,7 +66,7 @@ bool HandleEOD(CBC_EncoderContext* context, const CFX_WideString& buffer) { return false; int32_t available = - context->m_symbolInfo->m_dataCapacity - context->getCodewordCount(); + context->m_symbolInfo->dataCapacity() - context->getCodewordCount(); int32_t remaining = context->getRemainingCharacters(); if (remaining == 0 && available <= 2) return true; @@ -86,7 +86,7 @@ bool HandleEOD(CBC_EncoderContext* context, const CFX_WideString& buffer) { return false; int32_t available = - context->m_symbolInfo->m_dataCapacity - context->getCodewordCount(); + context->m_symbolInfo->dataCapacity() - context->getCodewordCount(); if (available >= 3) { restInAscii = false; context->updateSymbolInfo( |