Index: core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp b/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp |
index cbfdf2b9aca9530c2c15508dd29bd10748b6615e..dad98cd28e5e95415371bef3ac1e01187c733505 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp |
@@ -730,7 +730,7 @@ TEST(PDFArrayTest, AddReferenceAndGetObjectAt) { |
holder->ReplaceIndirectObjectIfHigherGeneration(obj_nums[i], |
indirect_objs[i]); |
arr->AddReference(holder.get(), obj_nums[i]); |
- arr1->AddReference(holder.get(), indirect_objs[i]); |
+ arr1->AddReference(holder.get(), indirect_objs[i]->GetObjNum()); |
} |
// Check indirect objects. |
for (size_t i = 0; i < FX_ArraySize(obj_nums); ++i) |