Index: core/fpdfdoc/cpdf_numbertree.cpp |
diff --git a/core/fpdfdoc/cpdf_numbertree.cpp b/core/fpdfdoc/cpdf_numbertree.cpp |
index 9e2881f414156a658aeec1a0c90ad163589542ef..36d18c2d19c42cc50feb260111f3de1c1613ee13 100644 |
--- a/core/fpdfdoc/cpdf_numbertree.cpp |
+++ b/core/fpdfdoc/cpdf_numbertree.cpp |
@@ -12,12 +12,12 @@ |
namespace { |
CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) { |
- CPDF_Array* pLimits = pNode->GetArrayBy("Limits"); |
+ CPDF_Array* pLimits = pNode->GetArrayFor("Limits"); |
if (pLimits && |
(num < pLimits->GetIntegerAt(0) || num > pLimits->GetIntegerAt(1))) { |
return nullptr; |
} |
- CPDF_Array* pNumbers = pNode->GetArrayBy("Nums"); |
+ CPDF_Array* pNumbers = pNode->GetArrayFor("Nums"); |
if (pNumbers) { |
for (size_t i = 0; i < pNumbers->GetCount() / 2; i++) { |
int index = pNumbers->GetIntegerAt(i * 2); |
@@ -29,7 +29,7 @@ CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) { |
return nullptr; |
} |
- CPDF_Array* pKids = pNode->GetArrayBy("Kids"); |
+ CPDF_Array* pKids = pNode->GetArrayFor("Kids"); |
if (!pKids) |
return nullptr; |