diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-28 14:46:18 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-28 20:17:15 +0000 |
commit | d2ee0f309037e3f4e8384b616a2a615e7ee8d6ee (patch) | |
tree | 0d242a27091d087e3f467e7448c063a569835378 /core/fxcrt/fx_ucd.h | |
parent | d7de8e15eaae5a37abfcb8d1cf7028fbcebbaccd (diff) | |
download | pdfium-d2ee0f309037e3f4e8384b616a2a615e7ee8d6ee.tar.xz |
Convert the FX_RTFBREAK defines to an enum class
This Cl converts the type and updates the usage as required.
Change-Id: I7c0f13aeabee1117086728333618504d3b65bb06
Reviewed-on: https://pdfium-review.googlesource.com/2876
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_ucd.h')
-rw-r--r-- | core/fxcrt/fx_ucd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fxcrt/fx_ucd.h b/core/fxcrt/fx_ucd.h index c3d876671a..feb258d7fc 100644 --- a/core/fxcrt/fx_ucd.h +++ b/core/fxcrt/fx_ucd.h @@ -165,13 +165,15 @@ class CFX_TxtChar : public CFX_Char { void* m_pUserData; }; +enum class CFX_RTFBreakType { None = 0, Piece, Line, Paragraph, Page }; + class CFX_RTFChar : public CFX_Char { public: CFX_RTFChar(); CFX_RTFChar(const CFX_RTFChar& other); ~CFX_RTFChar(); - uint32_t m_dwStatus; + CFX_RTFBreakType m_dwStatus; int32_t m_iFontSize; int32_t m_iFontHeight; int16_t m_iBidiClass; @@ -183,7 +185,7 @@ class CFX_RTFChar : public CFX_Char { }; inline CFX_RTFChar::CFX_RTFChar() - : m_dwStatus(0), + : m_dwStatus(CFX_RTFBreakType::None), m_iFontSize(0), m_iFontHeight(0), m_iBidiClass(0), |