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 --- fxjs/cfxjse_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs/cfxjse_engine.h') diff --git a/fxjs/cfxjse_engine.h b/fxjs/cfxjse_engine.h index 62de0614c4..0ae16df84e 100644 --- a/fxjs/cfxjse_engine.h +++ b/fxjs/cfxjse_engine.h @@ -56,7 +56,7 @@ class CFXJSE_Engine : public CFX_V8 { ~CFXJSE_Engine() override; void SetEventParam(CXFA_EventParam* param) { m_eventParam = param; } - CXFA_EventParam* GetEventParam() { return m_eventParam.Get(); } + CXFA_EventParam* GetEventParam() const { return m_eventParam.Get(); } bool RunScript(CXFA_Script::Type eScriptType, const WideStringView& wsScript, CFXJSE_Value* pRetValue, -- cgit v1.2.3