summaryrefslogtreecommitdiff
path: root/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-05-22 18:47:12 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-23 21:17:23 +0000
commitabc83aa862050642a90ed109074a9cf1018fee9b (patch)
treeb842d471c3cc49a0268a0647ca4c574248610ae9 /fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp
parente0f1310795f1cf886b9b2a134b28ace9e8fc25ba (diff)
downloadpdfium-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_DataMatrixSymbolInfo144.cpp')
-rw-r--r--fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp b/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp
index d0ccfc2f1e..c0994af6e0 100644
--- a/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp
+++ b/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp
@@ -26,15 +26,15 @@
#include "fxbarcode/datamatrix/BC_SymbolShapeHint.h"
CBC_DataMatrixSymbolInfo144::CBC_DataMatrixSymbolInfo144()
- : CBC_SymbolInfo(false, 1558, 620, 22, 22, 36) {
- m_rsBlockData = -1;
- m_rsBlockError = 62;
-}
+ : CBC_SymbolInfo(1558, 620, 22, 22, 36, -1, 62) {}
+
CBC_DataMatrixSymbolInfo144::~CBC_DataMatrixSymbolInfo144() {}
+
int32_t CBC_DataMatrixSymbolInfo144::getInterleavedBlockCount() {
return 10;
}
+
int32_t CBC_DataMatrixSymbolInfo144getDataLengthForInterleavedBlock(
int32_t index) {
- return (index <= 8) ? 156 : 155;
+ return index <= 8 ? 156 : 155;
}