summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/fgas_rtfbreak.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-03-13 12:30:42 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-13 17:05:04 +0000
commit8f03b422ed85180ac24fc76ba0fcf7de3556679f (patch)
tree146204fe83b87eb4789f5f957e3a3256b21a8cb7 /xfa/fgas/layout/fgas_rtfbreak.h
parent8da79203b32d1a0df05a23da83044bdaf71c320d (diff)
downloadpdfium-8f03b422ed85180ac24fc76ba0fcf7de3556679f.tar.xz
Simplify TxtBreak line handling.
This Cl moves the two lines into an array and uses m_iReady to index the array. Change-Id: Ibecfb35fb72603433a6ed1efa6ec8ae609caebf7 Reviewed-on: https://pdfium-review.googlesource.com/2951 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fgas/layout/fgas_rtfbreak.h')
-rw-r--r--xfa/fgas/layout/fgas_rtfbreak.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fgas/layout/fgas_rtfbreak.h b/xfa/fgas/layout/fgas_rtfbreak.h
index 5d29e0e84f..9d4d29b034 100644
--- a/xfa/fgas/layout/fgas_rtfbreak.h
+++ b/xfa/fgas/layout/fgas_rtfbreak.h
@@ -164,7 +164,7 @@ class CFX_RTFBreak {
void FontChanged();
void SetBreakStatus();
CFX_RTFChar* GetLastChar(int32_t index) const;
- bool HasRTFLine() const { return m_iReady >= 0; }
+ bool HasRTFLine() const { return m_iReadyLineIndex >= 0; }
FX_CHARTYPE GetUnifiedCharType(FX_CHARTYPE chartype) const;
int32_t GetLastPositionedTab() const;
bool GetPositionedTab(int32_t* iTabPos) const;
@@ -206,7 +206,7 @@ class CFX_RTFBreak {
CFX_RTFLine m_RTFLine[2];
CFX_RTFLine* m_pCurLine;
int32_t m_iTolerance;
- int8_t m_iReady;
+ int8_t m_iReadyLineIndex;
};
#endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_