diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-03-28 12:06:45 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-28 19:22:50 +0000 |
commit | 8b6186f89002099d406508acecf4bccc4ef64c95 (patch) | |
tree | df104ee415cfa90a53a23b88f1f66c3c2fd8d84e /xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp | |
parent | b0baff546bdcd911c80007829d9af5f05d0c04b0 (diff) | |
download | pdfium-8b6186f89002099d406508acecf4bccc4ef64c95.tar.xz |
Remove CFX_ArrayTemplate from FX barcode code.
This is now the last usage in pdfium, types to be removed
in a follow-on CL.
Change-Id: I16f67eb3eb99f21bb231829168203be125129ad7
Reviewed-on: https://pdfium-review.googlesource.com/3247
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp')
-rw-r--r-- | xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp b/xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp index ffdd308d54..0af52faedd 100644 --- a/xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp +++ b/xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp @@ -20,6 +20,8 @@ * limitations under the License. */ +#include <vector> + #include "xfa/fxbarcode/datamatrix/BC_Encoder.h" #include "xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h" #include "xfa/fxbarcode/datamatrix/BC_SymbolInfo.h" @@ -133,12 +135,9 @@ CFX_WideString CBC_ErrorCorrection::encodeECC200(CFX_WideString codewords, return CFX_WideString(); sb += ecc; } else { - CFX_ArrayTemplate<int32_t> dataSizes; - dataSizes.SetSize(blockCount); - CFX_ArrayTemplate<int32_t> errorSizes; - errorSizes.SetSize(blockCount); - CFX_ArrayTemplate<int32_t> startPos; - startPos.SetSize(blockCount); + std::vector<int32_t> dataSizes(blockCount); + std::vector<int32_t> errorSizes(blockCount); + std::vector<int32_t> startPos(blockCount); for (int32_t i = 0; i < blockCount; i++) { dataSizes[i] = symbolInfo->getDataLengthForInterleavedBlock(i + 1); errorSizes[i] = symbolInfo->getErrorLengthForInterleavedBlock(i + 1); |