From 320b2313d19869333ed453af546e61a9fc2b81c9 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 23 Jul 2015 13:26:26 -0700 Subject: FX_BOOL considered harmful, part 2. Fully automatic change, execpt for cleanup in fx_system.h R=thestig@chromium.org Review URL: https://codereview.chromium.org/1254703002 . --- core/src/fpdfdoc/doc_viewerPreferences.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src/fpdfdoc/doc_viewerPreferences.cpp') diff --git a/core/src/fpdfdoc/doc_viewerPreferences.cpp b/core/src/fpdfdoc/doc_viewerPreferences.cpp index eb824eb5a4..1c014dbd38 100644 --- a/core/src/fpdfdoc/doc_viewerPreferences.cpp +++ b/core/src/fpdfdoc/doc_viewerPreferences.cpp @@ -11,21 +11,21 @@ CPDF_ViewerPreferences::CPDF_ViewerPreferences(CPDF_Document *pDoc): m_pDoc(pDoc CPDF_ViewerPreferences::~CPDF_ViewerPreferences() { } -FX_BOOL CPDF_ViewerPreferences::IsDirectionR2L() const +bool CPDF_ViewerPreferences::IsDirectionR2L() const { CPDF_Dictionary *pDict = m_pDoc->GetRoot(); pDict = pDict->GetDict(FX_BSTRC("ViewerPreferences")); if (!pDict) { - return FALSE; + return false; } return FX_BSTRC("R2L") == pDict->GetString(FX_BSTRC("Direction")); } -FX_BOOL CPDF_ViewerPreferences::PrintScaling() const +bool CPDF_ViewerPreferences::PrintScaling() const { CPDF_Dictionary *pDict = m_pDoc->GetRoot(); pDict = pDict->GetDict(FX_BSTRC("ViewerPreferences")); if (!pDict) { - return TRUE; + return true; } return FX_BSTRC("None") != pDict->GetString(FX_BSTRC("PrintScaling")); } -- cgit v1.2.3