summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/app.cpp
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-11-14 17:03:50 -0800
committerBo Xu <bo_xu@foxitsoftware.com>2014-11-14 17:03:50 -0800
commit893fe94f069656ef5106db1aec32ec11b85f4de2 (patch)
treea0dba049ed478fd775976b8429308fb83a6ddda7 /fpdfsdk/src/javascript/app.cpp
parentd66fda28dc2159ffc68c312764172382825c4d10 (diff)
downloadpdfium-893fe94f069656ef5106db1aec32ec11b85f4de2.tar.xz
Remove FX_LPCWSTR cast to wchar_t* literals
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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/javascript/app.cpp b/fpdfsdk/src/javascript/app.cpp
index 1c4da08ccb..abba6ed15b 100644
--- a/fpdfsdk/src/javascript/app.cpp
+++ b/fpdfsdk/src/javascript/app.cpp
@@ -512,7 +512,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);
@@ -561,7 +561,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);
@@ -989,7 +989,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);