diff options
author | tsepez <tsepez@chromium.org> | 2016-11-02 15:43:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 15:43:19 -0700 |
commit | d19e912dd469e4bdad9f3020e1f6eb98f10f3470 (patch) | |
tree | 239cb568a80445f14a1ab9b63dcaaddcce67e1cc /xfa/fde/cfde_txtedtbufiter.cpp | |
parent | 12f3e4a58f05850b93af35619cb04f0231d86acc (diff) | |
download | pdfium-d19e912dd469e4bdad9f3020e1f6eb98f10f3470.tar.xz |
Remove FX_BOOL from xfa.
Review-Url: https://codereview.chromium.org/2467203003
Diffstat (limited to 'xfa/fde/cfde_txtedtbufiter.cpp')
-rw-r--r-- | xfa/fde/cfde_txtedtbufiter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fde/cfde_txtedtbufiter.cpp b/xfa/fde/cfde_txtedtbufiter.cpp index c6d77a4523..e4544a3891 100644 --- a/xfa/fde/cfde_txtedtbufiter.cpp +++ b/xfa/fde/cfde_txtedtbufiter.cpp @@ -19,10 +19,10 @@ CFDE_TxtEdtBufIter::CFDE_TxtEdtBufIter(CFDE_TxtEdtBuf* pBuf, FX_WCHAR wcAlias) CFDE_TxtEdtBufIter::~CFDE_TxtEdtBufIter() {} -FX_BOOL CFDE_TxtEdtBufIter::Next(FX_BOOL bPrev) { +bool CFDE_TxtEdtBufIter::Next(bool bPrev) { if (bPrev) { if (m_nIndex == 0) { - return FALSE; + return false; } ASSERT(m_nCurChunk < m_pBuf->m_Chunks.GetSize()); CFDE_TxtEdtBuf::FDE_CHUNKHEADER* lpChunk = nullptr; @@ -40,10 +40,10 @@ FX_BOOL CFDE_TxtEdtBufIter::Next(FX_BOOL bPrev) { } ASSERT(m_nCurChunk >= 0); m_nIndex--; - return TRUE; + return true; } else { if (m_nIndex >= (m_pBuf->m_nTotal - 1)) { - return FALSE; + return false; } ASSERT(m_nCurChunk < m_pBuf->m_Chunks.GetSize()); CFDE_TxtEdtBuf::FDE_CHUNKHEADER* lpChunk = m_pBuf->m_Chunks[m_nCurChunk]; @@ -62,7 +62,7 @@ FX_BOOL CFDE_TxtEdtBufIter::Next(FX_BOOL bPrev) { } } m_nIndex++; - return TRUE; + return true; } } @@ -86,7 +86,7 @@ FX_WCHAR CFDE_TxtEdtBufIter::GetChar() { return m_Alias; } -FX_BOOL CFDE_TxtEdtBufIter::IsEOF(FX_BOOL bTail) const { +bool CFDE_TxtEdtBufIter::IsEOF(bool bTail) const { return bTail ? m_nIndex == (m_pBuf->GetTextLength() - 2) : m_nIndex == 0; } |