From 007e6c0f9559412788b903bcb6a7601e220c3be8 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Feb 2016 14:31:56 -0800 Subject: Remove some FX_BOOLs Grepping for FX_BOOL and |==| on the same line gives a very strong clue that the expression won't be out of range of the |bool| type iteself. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1736323003 . --- xfa/src/fgas/include/fx_utl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/src/fgas/include/fx_utl.h') diff --git a/xfa/src/fgas/include/fx_utl.h b/xfa/src/fgas/include/fx_utl.h index e95d82005a..8ce736569d 100644 --- a/xfa/src/fgas/include/fx_utl.h +++ b/xfa/src/fgas/include/fx_utl.h @@ -664,7 +664,7 @@ class CFX_CPLTreeNode : public CFX_Target { } return iLevel; } - FX_BOOL IsRootNode() const { return m_pParentNode == NULL; } + bool IsRootNode() const { return !m_pParentNode; } baseType GetData() const { return m_Data; } void SetData(baseType data) { m_Data = data; } -- cgit v1.2.3