diff options
author | tsepez <tsepez@chromium.org> | 2016-04-28 14:56:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-28 14:56:27 -0700 |
commit | aef780db30c434e1d681d81852fb13160e72ed1e (patch) | |
tree | 24810c630b3b27649c0dd856d795c0069ca5bcd6 /xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp | |
parent | 8e957baa851aed4b02511d04a66c0f95387d1e10 (diff) | |
download | pdfium-aef780db30c434e1d681d81852fb13160e72ed1e.tar.xz |
Replace CFX_PtrArray with typesafe CFX_ArrayTemplate, part 4
Review-Url: https://codereview.chromium.org/1932703003
Diffstat (limited to 'xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp')
-rw-r--r-- | xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp b/xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp index 89c09c22a8..c70f8b1fc9 100644 --- a/xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp +++ b/xfa/fxbarcode/datamatrix/BC_DataMatrixDataBlock.cpp @@ -39,10 +39,10 @@ CFX_PtrArray* CBC_DataMatrixDataBlock::GetDataBlocks( int32_t& e) { ECBlocks* ecBlocks = version->GetECBlocks(); int32_t totalBlocks = 0; - const CFX_PtrArray& ecBlockArray = ecBlocks->GetECBlocks(); + const CFX_ArrayTemplate<ECB*>& ecBlockArray = ecBlocks->GetECBlocks(); int32_t i; for (i = 0; i < ecBlockArray.GetSize(); i++) { - totalBlocks += ((ECB*)ecBlockArray[i])->GetCount(); + totalBlocks += ecBlockArray[i]->GetCount(); } std::unique_ptr<CFX_PtrArray> result(new CFX_PtrArray()); result->SetSize(totalBlocks); |