summaryrefslogtreecommitdiff
path: root/src/cppunit/CompilerOutputter.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-06-13 22:25:55 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-06-13 22:25:55 +0000
commit6b57ee7236610cc5ac9e388bb73be1854429a27b (patch)
treea284fd568f043a402ed92465863035f21bb9208d /src/cppunit/CompilerOutputter.cpp
parent7f0766499db248afe9985a5700c22f9a8ce7ce6c (diff)
downloadcppunit-6b57ee7236610cc5ac9e388bb73be1854429a27b.tar.gz
Src/cppunit/CompilerOutputter.
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.
Diffstat (limited to 'src/cppunit/CompilerOutputter.cpp')
-rw-r--r--src/cppunit/CompilerOutputter.cpp6
1 files changed, 3 insertions, 3 deletions
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";