From 38fd84428a1ea007a043be0b7d9b289e47aa5da0 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 15 Sep 2016 10:15:32 -0700 Subject: Rename dictionary set and get methods This Cl makes the Get and Set methods consistenly use {G|S}etFor. BUG=pdfium:596 Review-Url: https://codereview.chromium.org/2334323005 --- core/fpdfdoc/cpdf_viewerpreferences.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/fpdfdoc/cpdf_viewerpreferences.cpp') diff --git a/core/fpdfdoc/cpdf_viewerpreferences.cpp b/core/fpdfdoc/cpdf_viewerpreferences.cpp index 4951e5ff5d..0dc55aad74 100644 --- a/core/fpdfdoc/cpdf_viewerpreferences.cpp +++ b/core/fpdfdoc/cpdf_viewerpreferences.cpp @@ -15,30 +15,30 @@ CPDF_ViewerPreferences::~CPDF_ViewerPreferences() {} FX_BOOL CPDF_ViewerPreferences::IsDirectionR2L() const { CPDF_Dictionary* pDict = GetViewerPreferences(); - return pDict ? pDict->GetStringBy("Direction") == "R2L" : FALSE; + return pDict ? pDict->GetStringFor("Direction") == "R2L" : FALSE; } FX_BOOL CPDF_ViewerPreferences::PrintScaling() const { CPDF_Dictionary* pDict = GetViewerPreferences(); - return pDict ? pDict->GetStringBy("PrintScaling") != "None" : TRUE; + return pDict ? pDict->GetStringFor("PrintScaling") != "None" : TRUE; } int32_t CPDF_ViewerPreferences::NumCopies() const { CPDF_Dictionary* pDict = GetViewerPreferences(); - return pDict ? pDict->GetIntegerBy("NumCopies") : 1; + return pDict ? pDict->GetIntegerFor("NumCopies") : 1; } CPDF_Array* CPDF_ViewerPreferences::PrintPageRange() const { CPDF_Dictionary* pDict = GetViewerPreferences(); - return pDict ? pDict->GetArrayBy("PrintPageRange") : nullptr; + return pDict ? pDict->GetArrayFor("PrintPageRange") : nullptr; } CFX_ByteString CPDF_ViewerPreferences::Duplex() const { CPDF_Dictionary* pDict = GetViewerPreferences(); - return pDict ? pDict->GetStringBy("Duplex") : CFX_ByteString("None"); + return pDict ? pDict->GetStringFor("Duplex") : CFX_ByteString("None"); } CPDF_Dictionary* CPDF_ViewerPreferences::GetViewerPreferences() const { CPDF_Dictionary* pDict = m_pDoc->GetRoot(); - return pDict ? pDict->GetDictBy("ViewerPreferences") : nullptr; + return pDict ? pDict->GetDictFor("ViewerPreferences") : nullptr; } -- cgit v1.2.3