From ed5f2bd8790b5165414744e99b712da5dc9b0f7c Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Mon, 15 Nov 2004 07:20:35 +0000 Subject: [PATCH] fix technical accuracy of statement git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/txtstrm.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 3fc683abd6..3643af2ba4 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -487,10 +487,11 @@ wxTextOutputStream& wxTextOutputStream::operator<<(float f) wxTextOutputStream &endl( wxTextOutputStream &stream ) { //RN: Normally a single char on builds without a real - //wchar_t will call the wxUint16 version, which - //is not what we want (will print a 10 numeric value, - //not a newline). Thus, we need to send it - //a string in that case instead. + //wchar_t will call the version that corresponds to the + //numeric value of wchar_t itself (wxUint16 if 2 bytes etc.), + //which is not what we want (will print a 10 numeric value, + //not a newline). Thus, we need to send it a string in that + // case instead so that it correctly prints the newline. #if !wxUSE_UNICODE || wxWCHAR_T_IS_REAL_TYPE return stream << wxT('\n'); #else