summaryrefslogtreecommitdiff
path: root/xfa/src
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-05-05 15:51:17 -0700
committerTom Sepez <tsepez@chromium.org>2015-05-05 15:51:17 -0700
commit997bc0e2b4fd3f43b17b9bfcec8a9cac2283cb1d (patch)
treece7456ab7049d7ff4e592f2918c6cdec334a8694 /xfa/src
parent3d33c90cfed96a8e5ce707a025e8efd59ce1ca01 (diff)
downloadpdfium-997bc0e2b4fd3f43b17b9bfcec8a9cac2283cb1d.tar.xz
Merge to XFA: Make sure string constructors are efficient on literals
Besides the merge, there's one place where a wchar vs. wstring comparison was being made that no longer compiled. Original Review URL: https://codereview.chromium.org/1117263004 BUG=pdfium:151 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1116163003
Diffstat (limited to 'xfa/src')
-rw-r--r--xfa/src/fxfa/src/app/xfa_textlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_textlayout.cpp b/xfa/src/fxfa/src/app/xfa_textlayout.cpp
index 82a2313692..c577042776 100644
--- a/xfa/src/fxfa/src/app/xfa_textlayout.cpp
+++ b/xfa/src/fxfa/src/app/xfa_textlayout.cpp
@@ -520,7 +520,7 @@ FX_BOOL CXFA_TextParser::GetEmbbedObj(IXFA_TextProvider *pTextProvider, IFDE_XML
if (wsAttr.IsEmpty()) {
return FALSE;
}
- if (wsAttr.GetAt(0) == FX_WSTRC(L"#")) {
+ if (wsAttr.GetAt(0) == L'#') {
wsAttr.Delete(0);
}
CFX_WideString ws;