diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-14 17:03:50 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-14 17:28:31 -0800 |
commit | f13c1f3d21b1fad7a3ac70c14387379f6e146a1a (patch) | |
tree | 9a3faa4513f451b24a6dd9999ea0f1ecca92a800 /fpdfsdk/src/javascript/app.cpp | |
parent | 0c32f02cf5dabd80c03f3af34874b5f84535b1ef (diff) | |
download | pdfium-f13c1f3d21b1fad7a3ac70c14387379f6e146a1a.tar.xz |
Merge to XFA: Patch from CL 726143002
BUG=https://code.google.com/p/pdfium/issues/detail?id=78
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/726143002
Diffstat (limited to 'fpdfsdk/src/javascript/app.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/app.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/javascript/app.cpp b/fpdfsdk/src/javascript/app.cpp index 42692382c8..03043e3a4d 100644 --- a/fpdfsdk/src/javascript/app.cpp +++ b/fpdfsdk/src/javascript/app.cpp @@ -525,7 +525,7 @@ FX_BOOL app::setInterval(OBJ_METHOD_PARAMS) CJS_Runtime* pRuntime = pContext->GetJSRuntime(); ASSERT(pRuntime != NULL); - CFX_WideString script = params.size() > 0 ? (FX_LPCWSTR)(params[0].operator CFX_WideString()) : (FX_LPCWSTR)L""; + CFX_WideString script = params.size() > 0 ? (FX_LPCWSTR)(params[0].operator CFX_WideString()) : L""; if (script.IsEmpty()) { sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSAFNUMBER_KEYSTROKE); @@ -574,7 +574,7 @@ FX_BOOL app::setTimeOut(OBJ_METHOD_PARAMS) CJS_Runtime* pRuntime = pContext->GetJSRuntime(); ASSERT(pRuntime != NULL); - CFX_WideString script = params.size() > 0 ? (FX_LPCWSTR)(params[0].operator CFX_WideString()) : (FX_LPCWSTR)L""; + CFX_WideString script = params.size() > 0 ? (FX_LPCWSTR)(params[0].operator CFX_WideString()) : L""; if (script.IsEmpty()) { sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSAFNUMBER_KEYSTROKE); @@ -1002,7 +1002,7 @@ CFX_WideString app::PDFPathToSysPath(const CFX_WideString& sOldPath) wchar_t c_Drive = strOPath.GetAt(1); if ((c_Drive >= L'a' && c_Drive <= L'z' )||( c_Drive >= L'A' && c_Drive <= L'Z')) { - strOPath.Replace((FX_LPCWSTR)L"/",(FX_LPCWSTR)L"\\"); + strOPath.Replace(L"/",L"\\"); //strOPath.SetAt(0,''); strOPath.Insert(2,':'); strOPath.Delete(0); |