diff options
author | dsinclair <dsinclair@chromium.org> | 2016-08-23 20:13:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-23 20:13:41 -0700 |
commit | 03bd7c78ff0411f0db033b5e6b5bf00c7fe2fb87 (patch) | |
tree | 76c4090fc95f5efa8d3fa4f47a14e7607ad881a8 /core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp | |
parent | 8252bc1e5a42ab406fb5f9f968623ea0c83b8656 (diff) | |
download | pdfium-03bd7c78ff0411f0db033b5e6b5bf00c7fe2fb87.tar.xz |
IndirectObjectHolder API updates
This Cl updates the names of the methods in the indirect object holder to better
reflect their usage. The m_LastObjNum is made private and a setter added.
Review-Url: https://codereview.chromium.org/2275593002
Diffstat (limited to 'core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp b/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp index 12a36d921a..efad3c38f6 100644 --- a/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp +++ b/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp @@ -116,7 +116,7 @@ TEST(cpdf_array, Clone) { CPDF_Number* obj = new CPDF_Number(elems[i][j]); // Starts object number from 1. int obj_num = i * kNumOfRowElems + j + 1; - obj_holder->InsertIndirectObject(obj_num, obj); + obj_holder->ReplaceIndirectObjectIfHigherGeneration(obj_num, obj); arr_elem->InsertAt(j, new CPDF_Reference(obj_holder.get(), obj_num), obj_holder.get()); } |