diff options
author | tsepez <tsepez@chromium.org> | 2017-01-10 10:19:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2017-01-10 10:19:04 -0800 |
commit | d18b8674378b104a9b5bb1f015e3f92fc174673e (patch) | |
tree | 6216931229e3b311e6c64008846a33e5135366b7 /core/fpdfapi | |
parent | 3128d1c45d8bc313abb8aae151f86bbe62c52e56 (diff) | |
download | pdfium-d18b8674378b104a9b5bb1f015e3f92fc174673e.tar.xz |
Remove some CFX_ArrayTemplate in fpdfapi and fpdfdoc
Also use unique_ptr in one spot while we're at it.
Review-Url: https://codereview.chromium.org/2625483002
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/parser/cpdf_parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp index 62364c0a75..f9d9eb3a97 100644 --- a/core/fpdfapi/parser/cpdf_parser.cpp +++ b/core/fpdfapi/parser/cpdf_parser.cpp @@ -986,14 +986,14 @@ bool CPDF_Parser::LoadCrossRefV5(FX_FILESIZE* pos, bool bMainXRef) { if (!pArray) return false; - CFX_ArrayTemplate<uint32_t> WidthArray; + std::vector<uint32_t> WidthArray; FX_SAFE_UINT32 dwAccWidth = 0; for (size_t i = 0; i < pArray->GetCount(); ++i) { - WidthArray.Add(pArray->GetIntegerAt(i)); + WidthArray.push_back(pArray->GetIntegerAt(i)); dwAccWidth += WidthArray[i]; } - if (!dwAccWidth.IsValid() || WidthArray.GetSize() < 3) + if (!dwAccWidth.IsValid() || WidthArray.size() < 3) return false; uint32_t totalWidth = dwAccWidth.ValueOrDie(); |