| Index: core/fpdfapi/parser/cpdf_data_avail.cpp
|
| diff --git a/core/fpdfapi/parser/cpdf_data_avail.cpp b/core/fpdfapi/parser/cpdf_data_avail.cpp
|
| index e23aa8ecfbd6bc063d11c1be8c70ed17211884ce..980c94d3250dbe6707ce6663b9a78fc53e0eb7cd 100644
|
| --- a/core/fpdfapi/parser/cpdf_data_avail.cpp
|
| +++ b/core/fpdfapi/parser/cpdf_data_avail.cpp
|
| @@ -155,7 +155,7 @@ FX_BOOL CPDF_DataAvail::AreObjectsAvailable(
|
|
|
| for (const auto& it : *pDict) {
|
| const CFX_ByteString& key = it.first;
|
| - CPDF_Object* value = it.second;
|
| + CPDF_Object* value = it.second.get();
|
| if (key != "Parent")
|
| new_obj_array.push_back(value);
|
| }
|
| @@ -493,8 +493,8 @@ FX_BOOL CPDF_DataAvail::CheckPage(DownloadHints* pHints) {
|
|
|
| CPDF_Array* pArray = ToArray(pObj);
|
| if (pArray) {
|
| - for (CPDF_Object* pArrayObj : *pArray) {
|
| - if (CPDF_Reference* pRef = ToReference(pArrayObj))
|
| + for (auto& pArrayObj : *pArray) {
|
| + if (CPDF_Reference* pRef = ToReference(pArrayObj.get()))
|
| UnavailObjList.Add(pRef->GetRefObjNum());
|
| }
|
| }
|
| @@ -742,7 +742,7 @@ FX_BOOL CPDF_DataAvail::CheckHintTables(DownloadHints* pHints) {
|
| return FALSE;
|
| }
|
|
|
| - for (const CPDF_Object* pArrayObject : *pHintStreamRange) {
|
| + for (const auto& pArrayObject : *pHintStreamRange) {
|
| const CPDF_Number* pNumber = ToNumber(pArrayObject->GetDirect());
|
| if (!pNumber || !pNumber->IsInteger()) {
|
| m_docStatus = PDF_DATAAVAIL_ERROR;
|
|
|