diff options
author | tsepez <tsepez@chromium.org> | 2016-05-04 13:38:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-04 13:38:11 -0700 |
commit | 7d89e728a450c681c53d40d7f67ee2eef0400705 (patch) | |
tree | a82e90ff7b65382965395a7b323cfbc7ea5009f4 /core/fxcrt/extension.h | |
parent | 10b01bf44695ce9a354660b16f607da70727a846 (diff) | |
download | pdfium-7d89e728a450c681c53d40d7f67ee2eef0400705.tar.xz |
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
Diffstat (limited to 'core/fxcrt/extension.h')
-rw-r--r-- | core/fxcrt/extension.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |