From 37ef9577dadc909c5affa6a6d6961557a7e73755 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 7 Aug 2018 20:08:56 +0000 Subject: Use wide string addition in place of some Format() calls. Simpler, faster, and avoids platform idiosyncracies of wprintf(). Change-Id: I91676bc38199ca2c30936094ca145239f915bc53 Reviewed-on: https://pdfium-review.googlesource.com/39610 Reviewed-by: Lei Zhang Reviewed-by: Tom Sepez Commit-Queue: Tom Sepez --- xfa/fxfa/cxfa_fftextedit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fxfa/cxfa_fftextedit.cpp') diff --git a/xfa/fxfa/cxfa_fftextedit.cpp b/xfa/fxfa/cxfa_fftextedit.cpp index e18b099401..88b48b4b65 100644 --- a/xfa/fxfa/cxfa_fftextedit.cpp +++ b/xfa/fxfa/cxfa_fftextedit.cpp @@ -203,8 +203,7 @@ void CXFA_FFTextEdit::ValidateNumberField(const WideString& wsText) { return; WideString wsSomField = GetNode()->GetSOMExpression(); - pAppProvider->MsgBox(WideString::Format(L"%ls can not contain %ls", - wsText.c_str(), wsSomField.c_str()), + pAppProvider->MsgBox(wsText + L" can not contain " + wsSomField, pAppProvider->GetAppTitle(), static_cast(AlertIcon::kError), static_cast(AlertButton::kOK)); -- cgit v1.2.3