Merge to XFA: Reduce usage of operator LPCWSTR from CFX_WideString().
Original Review URL: https://codereview.chromium.org/1101933003
TBR=brucedawson@chromium.org
Review URL: https://codereview.chromium.org/1108903002
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp
index 9b98e6e..50f9f3c 100644
--- a/fpdfsdk/src/javascript/JS_Context.cpp
+++ b/fpdfsdk/src/javascript/JS_Context.cpp
@@ -72,11 +72,11 @@
{
if (nMode == 0)
{
- nRet = JS_Execute(*m_pRuntime, this, script, script.GetLength(), &error);
+ nRet = JS_Execute(*m_pRuntime, this, script.c_str(), script.GetLength(), &error);
}
else
{
- nRet = JS_Parse(*m_pRuntime, this, script, script.GetLength(), &error);
+ nRet = JS_Parse(*m_pRuntime, this, script.c_str(), script.GetLength(), &error);
}
}