summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_context.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-01 19:51:11 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-01 19:51:11 +0000
commit1c88166e517d294141e08a45c81ce3c2d9fddaab (patch)
treeca1f61890138aba1da03ecbe5d31690b7209b270 /fpdfsdk/fpdfxfa/cpdfxfa_context.h
parentce342184e625493b826f6318cf104001c5c4d859 (diff)
downloadpdfium-1c88166e517d294141e08a45c81ce3c2d9fddaab.tar.xz
Remove checks for impossible situation in CPDFXFA_Context.
CPDFXFA_Context should always have a valid doc. Change-Id: Ifb547281f1e4f2741e2d741438b9a3ece71f9e99 Reviewed-on: https://pdfium-review.googlesource.com/43212 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_context.h')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.h b/fpdfsdk/fpdfxfa/cpdfxfa_context.h
index 1315375b58..92592a208e 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_context.h
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.h
@@ -111,7 +111,7 @@ class CPDFXFA_Context final : public CPDF_Document::Extension,
void CloseXFADoc();
FormType m_FormType = FormType::kNone;
- UnownedPtr<CPDF_Document> m_pPDFDoc;
+ UnownedPtr<CPDF_Document> const m_pPDFDoc;
std::unique_ptr<CXFA_FFDoc> m_pXFADoc;
Observable<CPDFSDK_FormFillEnvironment>::ObservedPtr m_pFormFillEnv;
UnownedPtr<CXFA_FFDocView> m_pXFADocView;