From fae5e26d983848089e35e2b53e9da24036661b08 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 20 Nov 2017 19:58:13 +0000 Subject: Make some CJS_EventHandler methods const. Change-Id: Ie95b6a4c2613b5e110d2dd1244dd4a87375f624f Reviewed-on: https://pdfium-review.googlesource.com/18750 Reviewed-by: Ryan Harrison Commit-Queue: Lei Zhang --- fxjs/cjs_event.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs/cjs_event.cpp') diff --git a/fxjs/cjs_event.cpp b/fxjs/cjs_event.cpp index 4e20bbc8ba..2d4508a30b 100644 --- a/fxjs/cjs_event.cpp +++ b/fxjs/cjs_event.cpp @@ -192,7 +192,7 @@ CJS_Return event::set_sel_end(CJS_Runtime* pRuntime, v8::Local vp) { if (wcscmp((const wchar_t*)pEvent->Name(), L"Keystroke") != 0) return CJS_Return(true); - pEvent->SelEnd() = pRuntime->ToInt32(vp); + pEvent->SetSelEnd(pRuntime->ToInt32(vp)); return CJS_Return(true); } @@ -214,7 +214,7 @@ CJS_Return event::set_sel_start(CJS_Runtime* pRuntime, if (wcscmp((const wchar_t*)pEvent->Name(), L"Keystroke") != 0) return CJS_Return(true); - pEvent->SelStart() = pRuntime->ToInt32(vp); + pEvent->SetSelStart(pRuntime->ToInt32(vp)); return CJS_Return(true); } -- cgit v1.2.3