summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_pageview.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-09-28 14:14:26 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-28 14:14:26 -0700
commit7c292e0f67e0f0bf4062e0b2adf244e17d7dacb5 (patch)
treedeb84d05a8eb6d4f194f608ebbb004842b57623b /fpdfsdk/cpdfsdk_pageview.cpp
parent8c41b1bf9fb7dd525f3a6b81d38f61d83500894d (diff)
downloadpdfium-7c292e0f67e0f0bf4062e0b2adf244e17d7dacb5.tar.xz
Remove dead code from CPDF_InterForm.
Remove default arguments. Review-Url: https://codereview.chromium.org/2380753003
Diffstat (limited to 'fpdfsdk/cpdfsdk_pageview.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_pageview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_pageview.cpp b/fpdfsdk/cpdfsdk_pageview.cpp
index 900ea48670..f546e385e6 100644
--- a/fpdfsdk/cpdfsdk_pageview.cpp
+++ b/fpdfsdk/cpdfsdk_pageview.cpp
@@ -6,6 +6,9 @@
#include "fpdfsdk/include/cpdfsdk_pageview.h"
+#include <memory>
+#include <vector>
+
#include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
#include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
#include "core/fpdfdoc/include/cpdf_annotlist.h"
@@ -488,9 +491,9 @@ void CPDFSDK_PageView::LoadFXAnnots() {
CPDF_Page* pPage = GetPDFPage();
ASSERT(pPage);
- FX_BOOL bUpdateAP = CPDF_InterForm::IsUpdateAPEnabled();
+ bool bUpdateAP = CPDF_InterForm::IsUpdateAPEnabled();
// Disable the default AP construction.
- CPDF_InterForm::SetUpdateAP(FALSE);
+ CPDF_InterForm::SetUpdateAP(false);
m_pAnnotList.reset(new CPDF_AnnotList(pPage));
CPDF_InterForm::SetUpdateAP(bUpdateAP);