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 c1d17a98ed9fc67d06d7e9e81a63d7cdf5f5e700..6af2da6ff0df5319e279d048de45bf881864d2d4 100644 |
--- a/core/fpdfapi/parser/cpdf_data_avail.cpp |
+++ b/core/fpdfapi/parser/cpdf_data_avail.cpp |
@@ -470,15 +470,13 @@ bool CPDF_DataAvail::CheckPage(DownloadHints* pHints) { |
CPDF_Array* pArray = ToArray(pObj.get()); |
if (pArray) { |
- for (CPDF_Object* pArrayObj : *pArray) { |
- if (CPDF_Reference* pRef = ToReference(pArrayObj)) |
+ for (const auto& pArrayObj : *pArray) { |
+ if (CPDF_Reference* pRef = ToReference(pArrayObj.get())) |
UnavailObjList.Add(pRef->GetRefObjNum()); |
} |
} |
- |
- if (!pObj->IsDictionary()) { |
+ if (!pObj->IsDictionary()) |
continue; |
- } |
CFX_ByteString type = pObj->GetDict()->GetStringFor("Type"); |
if (type == "Pages") { |