diff options
author | Bruce Dawson <brucedawson@google.com> | 2014-11-17 15:33:04 -0800 |
---|---|---|
committer | Bruce Dawson <brucedawson@google.com> | 2014-11-17 15:33:04 -0800 |
commit | cf19caadfa3e7e01d3412d83540e8492b52b31d7 (patch) | |
tree | f100f6946c18e387b6a0eaf14b396e79d564ac9c /fpdfsdk/include/javascript/JS_Define.h | |
parent | 9ae02acf2f33fc68a6f3c00c3ad86e15725b8941 (diff) | |
download | pdfium-cf19caadfa3e7e01d3412d83540e8492b52b31d7.tar.xz |
Removing unnecessary casts from wchar_t* to wchar_t*, by various names.
Remove casts that merely cast from wchar_t* to wchar_t*. Sometimes the
types or casts are FX_LPCWSTR but the idea is the same. Excess casts
can (and have) hidden bugs so removing these may prevent future problems.
Original patch from Bruce Dawson(brucedawson@chromium.org)
R=bo_xu@foxitsoftware.com, tsepez@chromium.org
Review URL: https://codereview.chromium.org/730993002
Diffstat (limited to 'fpdfsdk/include/javascript/JS_Define.h')
-rw-r--r-- | fpdfsdk/include/javascript/JS_Define.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/include/javascript/JS_Define.h b/fpdfsdk/include/javascript/JS_Define.h index 108c1e23ee..62a8d1417e 100644 --- a/fpdfsdk/include/javascript/JS_Define.h +++ b/fpdfsdk/include/javascript/JS_Define.h @@ -626,7 +626,7 @@ if (JS_DefineGlobalConst(pRuntime,JS_WIDESTRING(const_name),JS_NewString(pRuntim int size = sizeof(ArrayContent) / sizeof(FX_LPCWSTR);\ \ CJS_Array array(pRuntime);\ -for (int i=0; i<size; i++) array.SetElement(i,CJS_Value(pRuntime,(FX_LPCWSTR)ArrayContent[i]));\ +for (int i=0; i<size; i++) array.SetElement(i,CJS_Value(pRuntime,ArrayContent[i]));\ \ CJS_PropValue prop(pRuntime);\ prop << array;\ |