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 577204336782789600f47c0ec7abc99244230a57..cbfdf2b9aca9530c2c15508dd29bd10748b6615e 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp |
@@ -813,7 +813,8 @@ TEST(PDFObjectTest, CloneCheckLoop) { |
objects_holder.AddIndirectObject(dict_obj); |
EXPECT_EQ(1u, dict_obj->GetObjNum()); |
dict_obj->SetFor("arr", arr_obj); |
- arr_obj->InsertAt(0, dict_obj, &objects_holder); |
+ arr_obj->InsertAt( |
+ 0, new CPDF_Reference(&objects_holder, dict_obj->GetObjNum())); |
CPDF_Object* elem0 = arr_obj->GetObjectAt(0); |
ASSERT_TRUE(elem0); |
ASSERT_TRUE(elem0->IsReference()); |