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_apsettings.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_apsettings.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_apsettings.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fpdfdoc/cpdf_apsettings.cpp b/core/fpdfdoc/cpdf_apsettings.cpp index f2a802b445..3715e8ab89 100644 --- a/core/fpdfdoc/cpdf_apsettings.cpp +++ b/core/fpdfdoc/cpdf_apsettings.cpp @@ -17,7 +17,7 @@ bool CPDF_ApSettings::HasMKEntry(const CFX_ByteString& csEntry) const { } int CPDF_ApSettings::GetRotation() const { - return m_pDict ? m_pDict->GetIntegerBy("R") : 0; + return m_pDict ? m_pDict->GetIntegerFor("R") : 0; } FX_ARGB CPDF_ApSettings::GetColor(int& iColorType, @@ -26,7 +26,7 @@ FX_ARGB CPDF_ApSettings::GetColor(int& iColorType, if (!m_pDict) return 0; - CPDF_Array* pEntry = m_pDict->GetArrayBy(csEntry); + CPDF_Array* pEntry = m_pDict->GetArrayFor(csEntry); if (!pEntry) return 0; @@ -64,7 +64,7 @@ FX_FLOAT CPDF_ApSettings::GetOriginalColor( if (!m_pDict) return 0; - CPDF_Array* pEntry = m_pDict->GetArrayBy(csEntry); + CPDF_Array* pEntry = m_pDict->GetArrayFor(csEntry); return pEntry ? pEntry->GetNumberAt(index) : 0; } @@ -78,7 +78,7 @@ void CPDF_ApSettings::GetOriginalColor(int& iColorType, if (!m_pDict) return; - CPDF_Array* pEntry = m_pDict->GetArrayBy(csEntry); + CPDF_Array* pEntry = m_pDict->GetArrayFor(csEntry); if (!pEntry) return; @@ -102,18 +102,18 @@ void CPDF_ApSettings::GetOriginalColor(int& iColorType, CFX_WideString CPDF_ApSettings::GetCaption( const CFX_ByteString& csEntry) const { - return m_pDict ? m_pDict->GetUnicodeTextBy(csEntry) : CFX_WideString(); + return m_pDict ? m_pDict->GetUnicodeTextFor(csEntry) : CFX_WideString(); } CPDF_Stream* CPDF_ApSettings::GetIcon(const CFX_ByteString& csEntry) const { - return m_pDict ? m_pDict->GetStreamBy(csEntry) : nullptr; + return m_pDict ? m_pDict->GetStreamFor(csEntry) : nullptr; } CPDF_IconFit CPDF_ApSettings::GetIconFit() const { - return CPDF_IconFit(m_pDict ? m_pDict->GetDictBy("IF") : nullptr); + return CPDF_IconFit(m_pDict ? m_pDict->GetDictFor("IF") : nullptr); } int CPDF_ApSettings::GetTextPosition() const { - return m_pDict ? m_pDict->GetIntegerBy("TP", TEXTPOS_CAPTION) + return m_pDict ? m_pDict->GetIntegerFor("TP", TEXTPOS_CAPTION) : TEXTPOS_CAPTION; } |