diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-20 19:58:13 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-20 19:58:13 +0000 |
commit | fae5e26d983848089e35e2b53e9da24036661b08 (patch) | |
tree | eb5901d51975f27a82891cf135d127d2b7c2e8d3 /fxjs/cjs_event.cpp | |
parent | 9d0d7c8f35b8f3063d33a41186ea677d01748e45 (diff) | |
download | pdfium-fae5e26d983848089e35e2b53e9da24036661b08.tar.xz |
Make some CJS_EventHandler methods const.
Change-Id: Ie95b6a4c2613b5e110d2dd1244dd4a87375f624f
Reviewed-on: https://pdfium-review.googlesource.com/18750
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cjs_event.cpp')
-rw-r--r-- | fxjs/cjs_event.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<v8::Value> 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); } |