From 9fff1c76c1083a5cc0543911811e36007a38aa3a Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 22 Jun 2018 17:46:05 +0000 Subject: Avoid some duplicate const/non-const getters. Getters should nearly always be const when they return a non-const pointer to an unowned object. Saves a bit of code along the way. Grep for similar occurrences and add "const". Change-Id: I492bf962a7d62452fa40310146226dc0c8ebb753 Reviewed-on: https://pdfium-review.googlesource.com/35890 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- fpdfsdk/fpdfxfa/cpdfxfa_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_context.h') diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.h b/fpdfsdk/fpdfxfa/cpdfxfa_context.h index 54b2cac349..45ad447c5a 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_context.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.h @@ -41,7 +41,7 @@ class CPDFXFA_Context : public CPDF_Document::Extension, bool LoadXFADoc(); CXFA_FFDoc* GetXFADoc() { return m_pXFADoc.get(); } - CXFA_FFDocView* GetXFADocView() { return m_pXFADocView.Get(); } + CXFA_FFDocView* GetXFADocView() const { return m_pXFADocView.Get(); } FormType GetFormType() const { return m_FormType; } bool ContainsXFAForm() const { return m_FormType == FormType::kXFAFull || -- cgit v1.2.3