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)