diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-14 17:03:50 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-14 17:28:31 -0800 |
commit | f13c1f3d21b1fad7a3ac70c14387379f6e146a1a (patch) | |
tree | 9a3faa4513f451b24a6dd9999ea0f1ecca92a800 /core/src/fxcrt | |
parent | 0c32f02cf5dabd80c03f3af34874b5f84535b1ef (diff) | |
download | pdfium-f13c1f3d21b1fad7a3ac70c14387379f6e146a1a.tar.xz |
Merge to XFA: Patch from CL 726143002
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 'core/src/fxcrt')
-rw-r--r-- | core/src/fxcrt/fx_basic_wstring.cpp | 4 | ||||
-rw-r--r-- | core/src/fxcrt/fx_xml_parser.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp index 794630b9e5..3a13d59054 100644 --- a/core/src/fxcrt/fx_basic_wstring.cpp +++ b/core/src/fxcrt/fx_basic_wstring.cpp @@ -829,7 +829,7 @@ void CFX_WideString::FormatV(FX_LPCWSTR lpszFormat, va_list argList) ; } if (nWidth < 0 || nWidth > 128 * 1024) { - lpszFormat = (FX_LPCWSTR)L"Bad width"; + lpszFormat = L"Bad width"; nMaxLen = 10; break; } @@ -846,7 +846,7 @@ void CFX_WideString::FormatV(FX_LPCWSTR lpszFormat, va_list argList) } } if (nPrecision < 0 || nPrecision > 128 * 1024) { - lpszFormat = (FX_LPCWSTR)L"Bad precision"; + lpszFormat = L"Bad precision"; nMaxLen = 14; break; } diff --git a/core/src/fxcrt/fx_xml_parser.cpp b/core/src/fxcrt/fx_xml_parser.cpp index bd418b2d08..d96b38b675 100644 --- a/core/src/fxcrt/fx_xml_parser.cpp +++ b/core/src/fxcrt/fx_xml_parser.cpp @@ -472,7 +472,7 @@ CXML_Element* CXML_Parser::ParseElement(CXML_Element* pParent, FX_BOOL bStartTag content << decoder.GetResult(); CFX_WideString dataStr = content.GetWideString(); if (!bCDATA && !m_bSaveSpaceChars) { - dataStr.TrimRight((FX_LPCWSTR)L" \t\r\n"); + dataStr.TrimRight(L" \t\r\n"); } InsertContentSegment(bCDATA, dataStr, pElement); content.Clear(); @@ -516,7 +516,7 @@ CXML_Element* CXML_Parser::ParseElement(CXML_Element* pParent, FX_BOOL bStartTag content << decoder.GetResult(); CFX_WideString dataStr = content.GetWideString(); if (!m_bSaveSpaceChars) { - dataStr.TrimRight((FX_LPCWSTR)L" \t\r\n"); + dataStr.TrimRight(L" \t\r\n"); } InsertContentSegment(bCDATA, dataStr, pElement); content.Clear(); |