diff options
author | tsepez <tsepez@chromium.org> | 2016-11-02 15:17:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 15:17:30 -0700 |
commit | 12f3e4a58f05850b93af35619cb04f0231d86acc (patch) | |
tree | 9851d8e46e5c168f5d148864caa2eebf814529dd /core/fxcrt/extension.h | |
parent | 3b3ce1a242f8445848d3f23d6c35ba01d7c645f4 (diff) | |
download | pdfium-12f3e4a58f05850b93af35619cb04f0231d86acc.tar.xz |
Remove FX_BOOL from core
Review-Url: https://codereview.chromium.org/2477443002
Diffstat (limited to 'core/fxcrt/extension.h')
-rw-r--r-- | core/fxcrt/extension.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fxcrt/extension.h b/core/fxcrt/extension.h index 5b1801bb1b..ca2fc3c5b7 100644 --- a/core/fxcrt/extension.h +++ b/core/fxcrt/extension.h @@ -46,7 +46,7 @@ class CFX_CRTFileAccess : public IFX_FileAccess { void GetPath(CFX_WideString& wsPath) override; IFX_SeekableStream* CreateFileStream(uint32_t dwModes) override; - FX_BOOL Init(const CFX_WideStringC& wsPath); + bool Init(const CFX_WideStringC& wsPath); protected: CFX_WideString m_path; @@ -81,8 +81,8 @@ class CFX_CRTFileStream final : public IFX_SeekableStream { class CFX_MemoryStream final : public IFX_MemoryStream { public: - explicit CFX_MemoryStream(FX_BOOL bConsecutive); - CFX_MemoryStream(uint8_t* pBuffer, size_t nSize, FX_BOOL bTakeOver); + explicit CFX_MemoryStream(bool bConsecutive); + CFX_MemoryStream(uint8_t* pBuffer, size_t nSize, bool bTakeOver); ~CFX_MemoryStream() override; // IFX_MemoryStream @@ -100,7 +100,7 @@ class CFX_MemoryStream final : public IFX_MemoryStream { uint8_t* GetBuffer() const override; void AttachBuffer(uint8_t* pBuffer, size_t nSize, - bool bTakeOver = FALSE) override; + bool bTakeOver = false) override; void DetachBuffer() override; protected: @@ -111,7 +111,7 @@ class CFX_MemoryStream final : public IFX_MemoryStream { size_t m_nCurPos; size_t m_nGrowSize; uint32_t m_dwFlags; - FX_BOOL ExpandBlocks(size_t size); + bool ExpandBlocks(size_t size); }; #ifdef __cplusplus @@ -125,14 +125,14 @@ extern "C" { struct FX_MTRANDOMCONTEXT { FX_MTRANDOMCONTEXT() { mti = MT_N + 1; - bHaveSeed = FALSE; + bHaveSeed = false; } uint32_t mti; - FX_BOOL bHaveSeed; + bool bHaveSeed; uint32_t mt[MT_N]; }; #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ -FX_BOOL FX_GenerateCryptoRandom(uint32_t* pBuffer, int32_t iCount); +bool FX_GenerateCryptoRandom(uint32_t* pBuffer, int32_t iCount); #endif #ifdef __cplusplus } |