From 2dfebc67705273fa4fbd319a9bccbd9b43cead12 Mon Sep 17 00:00:00 2001 From: Peter Moulder Date: Thu, 5 Jun 2008 06:28:20 +0000 Subject: fix compile with g++-4.3. (bzr r5810) --- src/PylogFormatter.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/PylogFormatter.h') diff --git a/src/PylogFormatter.h b/src/PylogFormatter.h index f2d72ea04..adfc9a7f1 100644 --- a/src/PylogFormatter.h +++ b/src/PylogFormatter.h @@ -1,6 +1,7 @@ #ifndef PYLOG_FORMATTER_H_SEEN #define PYLOG_FORMATTER_H_SEEN +#include #include #ifndef _CXXTEST_HAVE_STD @@ -38,6 +39,7 @@ public: virtual void leaveWorld( const WorldDescription & desc ) { + using std::strlen; unsigned int skippedCount = 0; unsigned int failedCount = 0; unsigned int warnedCount = 0; @@ -59,8 +61,8 @@ public: (*_o) << test.suiteName() << "_|_" << test.testName(); (*_o) << " "; - int sent = strlen( test.suiteName() ) + strlen( test.testName() ) + 1; - for ( int z = sent; z < 56; z++ ) { + unsigned const sent = strlen( test.suiteName() ) + strlen( test.testName() ) + 1; + for ( unsigned z = sent; z < 56; z++ ) { (*_o) << " "; } -- cgit v1.2.3