diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2015-01-08 16:29:03 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2015-01-08 16:29:03 -0800 |
commit | 9478b521b01a9cc94a0d6cfe43b8e0341b5b82eb (patch) | |
tree | 464ce6c996ffa4346588f5e8156834b83c4dff41 | |
parent | fa2cff84cedaba3f827fc02ae5301bf1cfeb728b (diff) | |
download | pdfium-9478b521b01a9cc94a0d6cfe43b8e0341b5b82eb.tar.xz |
Do not convert from string literal to wchar_t*
R=brucedawson@chromium.org
Review URL: https://codereview.chromium.org/841203002
-rw-r--r-- | xfa/src/fxfa/src/fm2js/xfa_fm2jscontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fxfa/src/fm2js/xfa_fm2jscontext.cpp b/xfa/src/fxfa/src/fm2js/xfa_fm2jscontext.cpp index 330bfcfcf5..be74852098 100644 --- a/xfa/src/fxfa/src/fm2js/xfa_fm2jscontext.cpp +++ b/xfa/src/fxfa/src/fm2js/xfa_fm2jscontext.cpp @@ -3958,7 +3958,7 @@ void CXFA_FM2JSContext::EncodeURL (FX_BSTR szURLString, CFX_ByteTextBuf &szResu FX_WCHAR strUnsafe[] = { ' ', '<', '>', '"', '#', '%', '{', '}', '|', '\\', '^', '~', '[', ']', '`' };
FX_WCHAR strReserved[] = {';', '/', '?', ':', '@', '=', '&'};
FX_WCHAR strSpecial[] = {'$', '-', '+', '!', '*', '\'', '(', ')', ','};
- FX_WCHAR* strCode = L"0123456789abcdef";
+ const FX_LPCWSTR strCode = L"0123456789abcdef";
for (FX_INT32 u = 0; u < iLength; ++u) {
ch = wsURLString.GetAt(u);
FX_INT32 i = 0;
@@ -4128,7 +4128,7 @@ void CXFA_FM2JSContext::EncodeXML (FX_BSTR szXMLString, CFX_ByteTextBuf &szResu L"lt",
L"gt"
};
- FX_WCHAR* strCode = L"0123456789abcdef";
+ const FX_LPCWSTR strCode = L"0123456789abcdef";
FX_WCHAR ch = 0;
FX_INT32 iLength = wsXMLString.GetLength();
FX_INT32 iIndex = 0;
|