Code

Indent support for XSLT extensions output.
[inkscape.git] / src / PylogFormatter.h
index 521ca612d3d5f6eb15816fa10a00ae77b9ed6bf5..94dba050c6be1f3598b33e622437dc120ba0f684 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef PYLOG_FORMATTER_H_SEEN
 #define PYLOG_FORMATTER_H_SEEN
 
+#include <cstring>
 #include <cxxtest/Flags.h>
 
 #ifndef _CXXTEST_HAVE_STD
@@ -30,7 +31,7 @@ public:
     {}
     virtual ~PylogFormatter() { delete outputStream(); }
 
-    virtual void enterWorld( const WorldDescription & desc )
+    virtual void enterWorld( const WorldDescription & /*desc*/ )
     {
         (*_o) << "**************************************************" << endl;
         _o->flush();
@@ -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) << " ";
                 }
 
@@ -296,7 +298,7 @@ protected:
         return _o;
     }
 
-    void _traceCurrent( const char* file, unsigned line, const CXXTEST_STD(string)& errMsg ) {
+    void _traceCurrent( const char* /*file*/, unsigned /*line*/, const CXXTEST_STD(string)& errMsg ) {
         _runPassed = false;
         if ( _suiteIndex < (int)_status.size() ) {
             if ( _testIndex < (int)_status[_suiteIndex].size() ) {
@@ -305,7 +307,7 @@ protected:
         }
     }
 
-    void _warnCurrent( const char* file, unsigned line, const CXXTEST_STD(string)& errMsg ) {
+    void _warnCurrent( const char* /*file*/, unsigned /*line*/, const CXXTEST_STD(string)& errMsg ) {
         _runPassed = false;
         if ( _suiteIndex < (int)_status.size() ) {
             if ( _testIndex < (int)_status[_suiteIndex].size() ) {
@@ -318,7 +320,7 @@ protected:
         }
     }
 
-    void _failCurrent( const char* file, unsigned line, const CXXTEST_STD(string)& errMsg ) {
+    void _failCurrent( const char* /*file*/, unsigned /*line*/, const CXXTEST_STD(string)& errMsg ) {
         _runPassed = false;
         if ( _suiteIndex < (int)_status.size() ) {
             if ( _testIndex < (int)_status[_suiteIndex].size() ) {
@@ -379,6 +381,6 @@ private:
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
 
 #endif // PYLOG_FORMATTER_H_SEEN