summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_bookmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_bookmark.cpp')
-rw-r--r--core/fpdfdoc/cpdf_bookmark.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfdoc/cpdf_bookmark.cpp b/core/fpdfdoc/cpdf_bookmark.cpp
index c9a2199750..de9832d233 100644
--- a/core/fpdfdoc/cpdf_bookmark.cpp
+++ b/core/fpdfdoc/cpdf_bookmark.cpp
@@ -15,7 +15,7 @@ uint32_t CPDF_Bookmark::GetColorRef() const {
if (!m_pDict)
return FXSYS_RGB(0, 0, 0);
- CPDF_Array* pColor = m_pDict->GetArrayBy("C");
+ CPDF_Array* pColor = m_pDict->GetArrayFor("C");
if (!pColor)
return FXSYS_RGB(0, 0, 0);
@@ -26,14 +26,14 @@ uint32_t CPDF_Bookmark::GetColorRef() const {
}
uint32_t CPDF_Bookmark::GetFontStyle() const {
- return m_pDict ? m_pDict->GetIntegerBy("F") : 0;
+ return m_pDict ? m_pDict->GetIntegerFor("F") : 0;
}
CFX_WideString CPDF_Bookmark::GetTitle() const {
if (!m_pDict)
return CFX_WideString();
- CPDF_String* pString = ToString(m_pDict->GetDirectObjectBy("Title"));
+ CPDF_String* pString = ToString(m_pDict->GetDirectObjectFor("Title"));
if (!pString)
return CFX_WideString();
@@ -54,7 +54,7 @@ CPDF_Dest CPDF_Bookmark::GetDest(CPDF_Document* pDocument) const {
if (!m_pDict)
return CPDF_Dest();
- CPDF_Object* pDest = m_pDict->GetDirectObjectBy("Dest");
+ CPDF_Object* pDest = m_pDict->GetDirectObjectFor("Dest");
if (!pDest)
return CPDF_Dest();
if (pDest->IsString() || pDest->IsName()) {
@@ -67,5 +67,5 @@ CPDF_Dest CPDF_Bookmark::GetDest(CPDF_Document* pDocument) const {
}
CPDF_Action CPDF_Bookmark::GetAction() const {
- return m_pDict ? CPDF_Action(m_pDict->GetDictBy("A")) : CPDF_Action();
+ return m_pDict ? CPDF_Action(m_pDict->GetDictFor("A")) : CPDF_Action();
}