From 6b57ee7236610cc5ac9e388bb73be1854429a27b Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Thu, 13 Jun 2002 22:25:55 +0000 Subject: Src/cppunit/CompilerOutputter. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/cppunit/CompilerOutputter.cpp: fixed bug #549762 (line wrap). * src/msvc6/testrunner/DynamicWindow/*: added. Dynamic Window library from Hans Bühler (hans.buehler@topmail.de) to resize window. * src/msvc6/testrunner/TestRunnerModel.h: * src/msvc6/testrunner/TestRunnerModel.cpp: removed dialog bounds from settings. Added public registry keys for cppunit, main dialog, and browse dialog. * src/msvc6/testrunner/TreeHierarchyDlg.h: * src/msvc6/testrunner/TreeHierarchyDlg.cpp: dialog is now resizable. Window placement is stored and restored. * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testrunner/TestRunnerDlg.cpp: replaced dialog resizing code by usage of Hans Bühler's Dynamic Window library. Dialog placement is stored/restored by that library. ProgressBar is now a child window. Added edit field to see the details of the failure. List on show the short description of the failure. * src/msvc6/testrunner/ProgressBar.h: * src/msvc6/testrunner/ProgressBar.cpp: is now a CWnd. * src/msvc6/testrunner/TestRunner.rc: named all static fill ID for resizing. Added an invisble static field for progress bar placement. --- src/cppunit/CompilerOutputter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cppunit/CompilerOutputter.cpp') diff --git a/src/cppunit/CompilerOutputter.cpp b/src/cppunit/CompilerOutputter.cpp index e71f067..4bc9e31 100644 --- a/src/cppunit/CompilerOutputter.cpp +++ b/src/cppunit/CompilerOutputter.cpp @@ -194,12 +194,12 @@ CompilerOutputter::wrap( std::string message ) for ( Lines::iterator it = lines.begin(); it != lines.end(); ++it ) { std::string line( *it ); - const int maxLineLength = 80; + const int maxLineLength = 79; int index =0; while ( index < line.length() ) { - std::string line( line.substr( index, maxLineLength ) ); - wrapped += line; + std::string lineSlice( line.substr( index, maxLineLength ) ); + wrapped += lineSlice; index += maxLineLength; if ( index < line.length() ) wrapped += "\n"; -- cgit v1.2.1