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/src/javascript/global.cpp | |
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/src/javascript/global.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/global.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp index 295a8d49af..03bdd5b575 100644 --- a/fpdfsdk/src/javascript/global.cpp +++ b/fpdfsdk/src/javascript/global.cpp @@ -341,7 +341,7 @@ void global_alternate::ObjectToArray(v8::Handle<v8::Object> pObj, CJS_GlobalVari CFX_WideString ws = JS_ToString(JS_GetArrayElemnet(pKeyList, i)); CFX_ByteString sKey = ws.UTF8Encode(); - v8::Handle<v8::Value> v = JS_GetObjectElement(isolate, pObj, (const wchar_t*)(FX_LPCWSTR)ws); + v8::Handle<v8::Value> v = JS_GetObjectElement(isolate, pObj, (FX_LPCWSTR)ws); FXJSVALUETYPE vt = GET_VALUE_TYPE(v); switch (vt) { |