summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc/doc_link.cpp
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-01-28 15:59:38 -0800
committerWei Li <weili@chromium.org>2016-01-28 15:59:38 -0800
commitd45e7a51904164fb22049f0a7a80d2a94c06936b (patch)
tree047012090dd6dac5ed99c620f250baea480059dd /core/src/fpdfdoc/doc_link.cpp
parentbadb41230bae96cba8fc481de47592836e3f43f8 (diff)
downloadpdfium-d45e7a51904164fb22049f0a7a80d2a94c06936b.tar.xz
Member function name refactoring
This is needed by Cl 1634373003 as the name collision with virtual functions will be shown as warnings on Linux. Also, it is better to use different names for different cases. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1644633003 .
Diffstat (limited to 'core/src/fpdfdoc/doc_link.cpp')
-rw-r--r--core/src/fpdfdoc/doc_link.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/fpdfdoc/doc_link.cpp b/core/src/fpdfdoc/doc_link.cpp
index b7ddb7e61c..6617e85cd4 100644
--- a/core/src/fpdfdoc/doc_link.cpp
+++ b/core/src/fpdfdoc/doc_link.cpp
@@ -56,20 +56,20 @@ CPDF_Link CPDF_LinkList::GetLinkAtPoint(CPDF_Page* pPage,
void CPDF_LinkList::LoadPageLinks(CPDF_Page* pPage,
std::vector<CPDF_Dictionary*>* pList) {
- CPDF_Array* pAnnotList = pPage->m_pFormDict->GetArray("Annots");
+ CPDF_Array* pAnnotList = pPage->m_pFormDict->GetArrayBy("Annots");
if (!pAnnotList)
return;
for (FX_DWORD i = 0; i < pAnnotList->GetCount(); ++i) {
- CPDF_Dictionary* pAnnot = pAnnotList->GetDict(i);
- bool add_link = (pAnnot && pAnnot->GetString("Subtype") == "Link");
+ CPDF_Dictionary* pAnnot = pAnnotList->GetDictAt(i);
+ bool add_link = (pAnnot && pAnnot->GetStringBy("Subtype") == "Link");
// Add non-links as nullptrs to preserve z-order.
pList->push_back(add_link ? pAnnot : nullptr);
}
}
CPDF_Rect CPDF_Link::GetRect() {
- return m_pDict->GetRect("Rect");
+ return m_pDict->GetRectBy("Rect");
}
CPDF_Dest CPDF_Link::GetDest(CPDF_Document* pDoc) {
CPDF_Object* pDest = m_pDict->GetElementValue("Dest");
@@ -86,5 +86,5 @@ CPDF_Dest CPDF_Link::GetDest(CPDF_Document* pDoc) {
return CPDF_Dest();
}
CPDF_Action CPDF_Link::GetAction() {
- return CPDF_Action(m_pDict->GetDict("A"));
+ return CPDF_Action(m_pDict->GetDictBy("A"));
}