summaryrefslogtreecommitdiff
path: root/fpdfsdk/fsdk_mgr.cpp
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-07-12 19:50:51 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-12 19:50:51 -0700
commit38506d3334fe114fb386ea9b719d432ff1760e42 (patch)
treecec9fe77912e4be12af049f2dcefb95aefc56e00 /fpdfsdk/fsdk_mgr.cpp
parentdf4044dc522c2049bfbab79faaa9e905c606888f (diff)
downloadpdfium-38506d3334fe114fb386ea9b719d432ff1760e42.tar.xz
Rename methods in CPDF_Interform.
EnableUpdateAP acutally sets s_bUpdateAP to the given parameter. So SetUpdateAP is accurate method name. Review-Url: https://codereview.chromium.org/2140423002
Diffstat (limited to 'fpdfsdk/fsdk_mgr.cpp')
-rw-r--r--fpdfsdk/fsdk_mgr.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/fpdfsdk/fsdk_mgr.cpp b/fpdfsdk/fsdk_mgr.cpp
index 32cc39622b..68143d2bdd 100644
--- a/fpdfsdk/fsdk_mgr.cpp
+++ b/fpdfsdk/fsdk_mgr.cpp
@@ -904,11 +904,11 @@ void CPDFSDK_PageView::LoadFXAnnots() {
#ifdef PDF_ENABLE_XFA
CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandlerMgr();
#else
- FX_BOOL enableAPUpdate = CPDF_InterForm::UpdatingAPEnabled();
+ FX_BOOL bUpdateAP = CPDF_InterForm::IsUpdateAPEnabled();
// Disable the default AP construction.
- CPDF_InterForm::EnableUpdateAP(FALSE);
+ CPDF_InterForm::SetUpdateAP(FALSE);
m_pAnnotList.reset(new CPDF_AnnotList(m_page));
- CPDF_InterForm::EnableUpdateAP(enableAPUpdate);
+ CPDF_InterForm::SetUpdateAP(bUpdateAP);
const size_t nCount = m_pAnnotList->Count();
#endif // PDF_ENABLE_XFA
@@ -937,11 +937,11 @@ void CPDFSDK_PageView::LoadFXAnnots() {
} else {
CPDF_Page* pPage = m_page->GetPDFPage();
ASSERT(pPage);
- FX_BOOL enableAPUpdate = CPDF_InterForm::UpdatingAPEnabled();
+ FX_BOOL bUpdateAP = CPDF_InterForm::IsUpdateAPEnabled();
// Disable the default AP construction.
- CPDF_InterForm::EnableUpdateAP(FALSE);
+ CPDF_InterForm::SetUpdateAP(FALSE);
m_pAnnotList.reset(new CPDF_AnnotList(pPage));
- CPDF_InterForm::EnableUpdateAP(enableAPUpdate);
+ CPDF_InterForm::SetUpdateAP(bUpdateAP);
const size_t nCount = m_pAnnotList->Count();
for (size_t i = 0; i < nCount; ++i) {