From 2599ff7ae76a2e7514c1794281ccb0802d6df2bc Mon Sep 17 00:00:00 2001 From: tsepez Date: Tue, 8 Nov 2016 14:38:59 -0800 Subject: Fix CPDFSDK_FormFillEnvironment destruction order This was broken in 6c659ab2. Also fix m_PageMap naming while we're at it to match conventions. TEST=covered by forthcoming bug 662698 CL. Review-Url: https://codereview.chromium.org/2489663002 --- fpdfsdk/cpdfsdk_formfillenvironment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.h') diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.h b/fpdfsdk/cpdfsdk_formfillenvironment.h index 2438019707..b7afbbc489 100644 --- a/fpdfsdk/cpdfsdk_formfillenvironment.h +++ b/fpdfsdk/cpdfsdk_formfillenvironment.h @@ -112,7 +112,7 @@ class CPDFSDK_FormFillEnvironment CPDFXFA_Context* GetXFAContext() const { return m_pUnderlyingDoc; } void ResetXFADocument() { m_pUnderlyingDoc = nullptr; } - int GetPageViewCount() const { return m_pageMap.size(); } + int GetPageViewCount() const { return m_PageMap.size(); } void DisplayCaret(FPDF_PAGE page, FPDF_BOOL bVisible, @@ -213,7 +213,7 @@ class CPDFSDK_FormFillEnvironment std::unique_ptr m_pActionHandler; std::unique_ptr m_pJSRuntime; FPDF_FORMFILLINFO* const m_pInfo; - std::map> m_pageMap; + std::map> m_PageMap; std::unique_ptr m_pInterForm; CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; UnderlyingDocumentType* m_pUnderlyingDoc; -- cgit v1.2.3