summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-06-01 15:28:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-01 15:28:54 +0000
commitd60d7cb936ea50a0dfab26372f3a8958f84250e7 (patch)
tree94a17b83ba7f2e6ff5715f15727e01d3a95e4cd9 /fxjs
parent4f21d77576b371270375f1120cba5cf99c248e9d (diff)
downloadpdfium-d60d7cb936ea50a0dfab26372f3a8958f84250e7.tar.xz
Fix XFA guards
These guards are using #if, when they should be using #ifdef. Caught using Clang's static analyzer. Change-Id: I86e99c5e4142cf84fff5f2365ad534f09ae40511 Reviewed-on: https://pdfium-review.googlesource.com/33510 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index 24be12d370..e087e0eda9 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -450,7 +450,7 @@ CJS_Return CJS_Document::removeField(
// and creating a new pageview at this point will cause bad things.
CPDFSDK_PageView* pPageView = m_pFormFillEnv->GetPageView(pPage, false);
if (pPageView) {
-#if PDF_ENABLE_XFA
+#ifdef PDF_ENABLE_XFA
pPageView->DeleteAnnot(pWidget);
#endif // PDF_ENABLE_XFA
pPageView->UpdateRects(aRefresh);