Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: core/fpdfdoc/cpdf_bookmark.cpp

Issue 2334323005: Rename dictionary set and get methods (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfdoc/cpdf_apsettings.cpp ('k') | core/fpdfdoc/cpdf_bookmarktree.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/cpdf_bookmark.cpp
diff --git a/core/fpdfdoc/cpdf_bookmark.cpp b/core/fpdfdoc/cpdf_bookmark.cpp
index c9a2199750eb4f7d5851b1d06432059b9de225dc..de9832d233478e2c254f445fbfdb0377ca12a977 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();
}
« no previous file with comments | « core/fpdfdoc/cpdf_apsettings.cpp ('k') | core/fpdfdoc/cpdf_bookmarktree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698