diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-04 13:51:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-04 13:51:51 -0700 |
commit | 8f4bf9a8ac211e150f7fa4d8ed061f264cb3aa9e (patch) | |
tree | 9ac5bb23a12623ea77ecb13e74a665733efedc8c /fpdfsdk/fxedit/fxet_edit.cpp | |
parent | 7d89e728a450c681c53d40d7f67ee2eef0400705 (diff) | |
download | pdfium-8f4bf9a8ac211e150f7fa4d8ed061f264cb3aa9e.tar.xz |
More define cleanup.
This CL converts defines into constants, enums, enum classes or removes them
as needed.
Review-Url: https://codereview.chromium.org/1938163002
Diffstat (limited to 'fpdfsdk/fxedit/fxet_edit.cpp')
-rw-r--r-- | fpdfsdk/fxedit/fxet_edit.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fpdfsdk/fxedit/fxet_edit.cpp b/fpdfsdk/fxedit/fxet_edit.cpp index bdd2c75325..f2ff300452 100644 --- a/fpdfsdk/fxedit/fxet_edit.cpp +++ b/fpdfsdk/fxedit/fxet_edit.cpp @@ -13,7 +13,11 @@ #include "core/fpdfdoc/include/cpvt_word.h" #include "core/fpdfdoc/include/ipvt_fontmap.h" -#define FX_EDIT_UNDO_MAXITEM 10000 +namespace { + +const int kEditUndoMaxItems = 10000; + +} // namespace CFX_Edit_Iterator::CFX_Edit_Iterator(CFX_Edit* pEdit, CPDF_VariableText::Iterator* pVTIterator) @@ -755,7 +759,7 @@ CFX_Edit::CFX_Edit(CPDF_VariableText* pVT) m_bEnableScroll(FALSE), m_pIterator(NULL), m_ptCaret(0.0f, 0.0f), - m_Undo(FX_EDIT_UNDO_MAXITEM), + m_Undo(kEditUndoMaxItems), m_nAlignment(0), m_bNotifyFlag(FALSE), m_bEnableOverflow(FALSE), |