Removing unnecessary casts from wchar_t* to wchar_t*, by various names.
authorBruce Dawson <brucedawson@google.com>
Mon, 17 Nov 2014 23:33:04 +0000 (15:33 -0800)
committerBruce Dawson <brucedawson@google.com>
Mon, 17 Nov 2014 23:33:04 +0000 (15:33 -0800)
commitcf19caadfa3e7e01d3412d83540e8492b52b31d7
treef100f6946c18e387b6a0eaf14b396e79d564ac9c
parent9ae02acf2f33fc68a6f3c00c3ad86e15725b8941
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
core/include/fxcrt/fx_string.h
core/src/fxcrt/fx_basic_wstring.cpp
fpdfsdk/include/javascript/JS_Define.h
fpdfsdk/src/javascript/Field.cpp
fpdfsdk/src/javascript/global.cpp
fpdfsdk/src/javascript/util.cpp
fpdfsdk/src/jsapi/fxjs_v8.cpp