From d19e912dd469e4bdad9f3020e1f6eb98f10f3470 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 2 Nov 2016 15:43:18 -0700 Subject: Remove FX_BOOL from xfa. Review-Url: https://codereview.chromium.org/2467203003 --- xfa/fde/cfde_txtedtparag.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'xfa/fde/cfde_txtedtparag.cpp') diff --git a/xfa/fde/cfde_txtedtparag.cpp b/xfa/fde/cfde_txtedtparag.cpp index 38f569d334..6e6a664ff2 100644 --- a/xfa/fde/cfde_txtedtparag.cpp +++ b/xfa/fde/cfde_txtedtparag.cpp @@ -44,7 +44,7 @@ void CFDE_TxtEdtParag::LoadParag() { pIter->SetAt(m_nCharStart); int32_t nEndIndex = m_nCharStart + m_nCharCount; CFX_ArrayTemplate LineBaseArr; - FX_BOOL bReload = FALSE; + bool bReload = false; uint32_t dwBreakStatus = FX_TXTBREAK_None; do { if (bReload) { @@ -69,10 +69,10 @@ void CFDE_TxtEdtParag::LoadParag() { } if ((pIter->GetAt() + 1 == nEndIndex) && (dwBreakStatus == FX_TXTBREAK_LineBreak)) { - bReload = TRUE; - pIter->Next(TRUE); + bReload = true; + pIter->Next(true); } - } while (pIter->Next(FALSE) && (pIter->GetAt() < nEndIndex)); + } while (pIter->Next(false) && (pIter->GetAt() < nEndIndex)); pTxtBreak->EndBreak(FX_TXTBREAK_ParagraphBreak); pTxtBreak->ClearBreakPieces(); int32_t nLineCount = LineBaseArr.GetSize(); @@ -110,7 +110,7 @@ void CFDE_TxtEdtParag::CalcLines() { std::unique_ptr pIter( new CFDE_TxtEdtBufIter(static_cast(pTxtBuf))); pIter->SetAt(m_nCharStart); - FX_BOOL bReload = FALSE; + bool bReload = false; do { if (bReload) { dwBreakStatus = pTxtBreak->EndBreak(FX_TXTBREAK_ParagraphBreak); @@ -128,10 +128,10 @@ void CFDE_TxtEdtParag::CalcLines() { } if ((pIter->GetAt() + 1 == nEndIndex) && (dwBreakStatus == FX_TXTBREAK_LineBreak)) { - bReload = TRUE; - pIter->Next(TRUE); + bReload = true; + pIter->Next(true); } - } while (pIter->Next(FALSE) && (pIter->GetAt() < nEndIndex)); + } while (pIter->Next(false) && (pIter->GetAt() < nEndIndex)); pTxtBreak->EndBreak(FX_TXTBREAK_ParagraphBreak); pTxtBreak->ClearBreakPieces(); m_nLineCount = nCount; -- cgit v1.2.3