summaryrefslogtreecommitdiffstats
path: root/src/PylogFormatter.h
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2008-06-05 06:28:20 +0000
committerpjrm <pjrm@users.sourceforge.net>2008-06-05 06:28:20 +0000
commit2dfebc67705273fa4fbd319a9bccbd9b43cead12 (patch)
tree5bf9ce0b50807473c9a4a8e6a62d149c54b33328 /src/PylogFormatter.h
parentFix expression whose behaviour is undefined in C++. N.B. This “fix” invo... (diff)
downloadinkscape-2dfebc67705273fa4fbd319a9bccbd9b43cead12.tar.gz
inkscape-2dfebc67705273fa4fbd319a9bccbd9b43cead12.zip
fix compile with g++-4.3.
(bzr r5810)
Diffstat (limited to '')
-rw-r--r--src/PylogFormatter.h6
1 files changed, 4 insertions, 2 deletions
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 <cstring>
#include <cxxtest/Flags.h>
#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) << " ";
}