diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-15 10:15:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-15 10:15:32 -0700 |
commit | 38fd84428a1ea007a043be0b7d9b289e47aa5da0 (patch) | |
tree | 2bae09e8ae60d6d86e451eb7fa212f7aa9d899a8 /core/fpdfdoc/cpdf_bookmark.cpp | |
parent | 41d6bbe3d413e7854be89142b70c42a89e315cba (diff) | |
download | pdfium-38fd84428a1ea007a043be0b7d9b289e47aa5da0.tar.xz |
Rename dictionary set and get methods
This Cl makes the Get and Set methods consistenly use {G|S}et<Type>For.
BUG=pdfium:596
Review-Url: https://codereview.chromium.org/2334323005
Diffstat (limited to 'core/fpdfdoc/cpdf_bookmark.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_bookmark.cpp | 10 |
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(); } |