From 997bc0e2b4fd3f43b17b9bfcec8a9cac2283cb1d Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 5 May 2015 15:51:17 -0700 Subject: 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 --- xfa/src/fxfa/src/app/xfa_textlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/src') 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; -- cgit v1.2.3