diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-23 09:22:46 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-23 09:22:46 -0800 |
commit | ae7a9171a340c5f699c05d9e186b1d0197c3c0bb (patch) | |
tree | f7d5579a8e169872dbfb5c7507f3debce45f1241 /fpdfsdk/include | |
parent | b4f00291e3dbf0b067fd8e1c40194a5a30d89b1f (diff) | |
download | pdfium-ae7a9171a340c5f699c05d9e186b1d0197c3c0bb.tar.xz |
Merge to XFA: Add constant CPDFSDK_InterForm::kNumFieldTypes
Bumping this one line from 6 to 7 in XFA saves a bunch of diffs.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1458363005 .
(cherry picked from commit 7711b60efc62db14748711727560367d948745f1)
BUG=
Review URL: https://codereview.chromium.org/1470563002 .
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r-- | fpdfsdk/include/fsdk_baseform.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h index 788ba5fade..e648558a3a 100644 --- a/fpdfsdk/include/fsdk_baseform.h +++ b/fpdfsdk/include/fsdk_baseform.h @@ -344,9 +344,10 @@ class CPDFSDK_InterForm : public CPDF_FormNotify { FX_COLORREF GetHighlightColor(int nFieldType); private: - FX_COLORREF m_aHighlightColor[7]; + static const int kNumFieldTypes = 7; + FX_COLORREF m_aHighlightColor[kNumFieldTypes]; uint8_t m_iHighlightAlpha; - FX_BOOL m_bNeedHightlight[7]; + FX_BOOL m_bNeedHightlight[kNumFieldTypes]; }; #define BAI_STRUCTURE 0 |