Index: xfa/fxfa/fm2js/#xfa_fm2jscontext.cpp# |
diff --git a/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp b/xfa/fxfa/fm2js/#xfa_fm2jscontext.cpp# |
similarity index 99% |
copy from xfa/fxfa/fm2js/xfa_fm2jscontext.cpp |
copy to xfa/fxfa/fm2js/#xfa_fm2jscontext.cpp# |
index e687ee53b8421f7f4e2975af94ac26a714b0e25b..a851c8c60bacc89cc4497d71c6e24b61a5ec57d7 100644 |
--- a/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp |
+++ b/xfa/fxfa/fm2js/#xfa_fm2jscontext.cpp# |
@@ -3250,7 +3250,7 @@ void CXFA_FM2JSContext::Eval(FXJSE_HOBJECT hThis, |
FXJSE_HVALUE returnValue = FXJSE_Value_Create(hruntime); |
javaScript = wsJavaScriptBuf.GetWideString(); |
FXJSE_ExecuteScript(hContext, |
- FX_UTF8Encode(javaScript, javaScript.GetLength()), |
+ FX_UTF8Encode(javaScript.c_str(), javaScript.GetLength()).c_str(), |
returnValue); |
FXJSE_Value_Set(args.GetReturnValue(), returnValue); |
FXJSE_Value_Release(returnValue); |
@@ -3470,7 +3470,7 @@ void CXFA_FM2JSContext::UnitValue(FXJSE_HOBJECT hThis, |
FXJSE_Value_SetNull(args.GetReturnValue()); |
} else { |
HValueToUTF8String(unitspanValue, unitspanString); |
- const FX_CHAR* pData = unitspanString; |
+ const FX_CHAR* pData = unitspanString.c_str(); |
if (pData) { |
int32_t u = 0; |
while (*(pData + u) == 0x20 || *(pData + u) == 0x09 || |