From 7d89e728a450c681c53d40d7f67ee2eef0400705 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 4 May 2016 13:38:11 -0700 Subject: Return bool rather than bitwise-and for FX_BOOL Investigate results of: git grep -ni 'return [(]*[a-z0-9_]* &[^&]' git grep -ni 'BOOL.*= [(]*[a-z0-9_]* &[^&]' Review-Url: https://codereview.chromium.org/1951653002 --- core/fxcrt/extension.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcrt/extension.h') diff --git a/core/fxcrt/extension.h b/core/fxcrt/extension.h index a8a099c664..b0e7b9e117 100644 --- a/core/fxcrt/extension.h +++ b/core/fxcrt/extension.h @@ -241,7 +241,7 @@ class CFX_MemoryStream final : public IFX_MemoryStream { } FX_BOOL Flush() override { return TRUE; } FX_BOOL IsConsecutive() const override { - return m_dwFlags & FX_MEMSTREAM_Consecutive; + return !!(m_dwFlags & FX_MEMSTREAM_Consecutive); } void EstimateSize(size_t nInitSize, size_t nGrowSize) override { if (m_dwFlags & FX_MEMSTREAM_Consecutive) { -- cgit v1.2.3