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/cfx_chariter.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/cfx_chariter.cpp')
-rw-r--r-- | xfa/fde/cfx_chariter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fde/cfx_chariter.cpp b/xfa/fde/cfx_chariter.cpp index d51fb0868f..568ecd6cf0 100644 --- a/xfa/fde/cfx_chariter.cpp +++ b/xfa/fde/cfx_chariter.cpp @@ -13,17 +13,17 @@ CFX_CharIter::CFX_CharIter(const CFX_WideString& wsText) CFX_CharIter::~CFX_CharIter() {} -FX_BOOL CFX_CharIter::Next(FX_BOOL bPrev) { +bool CFX_CharIter::Next(bool bPrev) { if (bPrev) { if (m_nIndex <= 0) - return FALSE; + return false; m_nIndex--; } else { if (m_nIndex + 1 >= m_wsText.GetLength()) - return FALSE; + return false; m_nIndex++; } - return TRUE; + return true; } FX_WCHAR CFX_CharIter::GetChar() { @@ -40,7 +40,7 @@ int32_t CFX_CharIter::GetAt() const { return m_nIndex; } -FX_BOOL CFX_CharIter::IsEOF(FX_BOOL bTail) const { +bool CFX_CharIter::IsEOF(bool bTail) const { return bTail ? (m_nIndex + 1 == m_wsText.GetLength()) : (m_nIndex == 0); } |