From 34e4f66d6ad622572fd8cdeeaacb197cfea2dc9b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Mar 2014 13:26:01 +0000 Subject: [PATCH] Compilation fix in wchar_t build after r76171. Don't concatenate narrow wxLongLongFmtSpec with wide strings, just don't use wxT() at all. Closes #14685. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/txtstrm.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 2b35d0f3af..ca786620e7 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -398,10 +398,7 @@ void wxTextOutputStream::SetMode(wxEOL mode) void wxTextOutputStream::Write64(wxUint64 i) { - wxString str; - str.Printf(wxT("%" wxLongLongFmtSpec "u"), (unsigned long long)i); - - WriteString(str); + WriteString(wxString::Format("%" wxLongLongFmtSpec "u", i)); } void wxTextOutputStream::Write32(wxUint32 i)