summaryrefslogtreecommitdiff
path: root/fxjs/cjs_publicmethods.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-20 19:58:13 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-20 19:58:13 +0000
commitfae5e26d983848089e35e2b53e9da24036661b08 (patch)
treeeb5901d51975f27a82891cf135d127d2b7c2e8d3 /fxjs/cjs_publicmethods.cpp
parent9d0d7c8f35b8f3063d33a41186ea677d01748e45 (diff)
downloadpdfium-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_publicmethods.cpp')
-rw-r--r--fxjs/cjs_publicmethods.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fxjs/cjs_publicmethods.cpp b/fxjs/cjs_publicmethods.cpp
index 856fa11732..f54bc5ba4d 100644
--- a/fxjs/cjs_publicmethods.cpp
+++ b/fxjs/cjs_publicmethods.cpp
@@ -1228,7 +1228,7 @@ CJS_Return CJS_PublicMethods::AFDate_KeystrokeEx(
if (!pEvent->m_pValue)
return CJS_Return(false);
- WideString strValue = pEvent->Value();
+ const WideString& strValue = pEvent->Value();
if (strValue.IsEmpty())
return CJS_Return(true);
@@ -1369,7 +1369,7 @@ CJS_Return CJS_PublicMethods::AFSpecial_Format(
if (!pEvent->m_pValue)
return CJS_Return(false);
- WideString wsSource = pEvent->Value();
+ const WideString& wsSource = pEvent->Value();
WideString wsFormat;
switch (pRuntime->ToInt32(params[0])) {
case 0:
@@ -1405,7 +1405,7 @@ CJS_Return CJS_PublicMethods::AFSpecial_KeystrokeEx(
if (!pEvent->m_pValue)
return CJS_Return(false);
- WideString& valEvent = pEvent->Value();
+ const WideString& valEvent = pEvent->Value();
WideString wstrMask = pRuntime->ToWideString(params[0]);
if (wstrMask.IsEmpty())
return CJS_Return(true);