Some tidy up

This commit is contained in:
Phil Nash
2010-12-10 20:06:54 +00:00
parent 68eec929e4
commit de77ff3b29
4 changed files with 14 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ namespace Catch
// create a T for use in sizeof expressions
template<typename T> T Synth();
}
#endif // TWOBLUECUBES_CATCH_COMMON_H_INCLUDED

View File

@@ -22,6 +22,16 @@
namespace Catch
{
///////////////////////////////////////////////////////////////////////////
static std::string trim( const std::string& str )
{
std::string::size_type start = str.find_first_not_of( "\n\r\t " );
std::string::size_type end = str.find_last_not_of( "\n\r\t " );
return start < end ? str.substr( start, 1+end-start ) : "";
}
class ReporterConfig
{
private:
@@ -167,7 +177,7 @@ namespace Catch
{
ReporterRegistry::instance().registerReporter<T>( name );
}
};
};
}
#define CATCH_REGISTER_REPORTER( name, reporterType ) Catch::ReporterRegistrar<reporterType> INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ReporterReg )( name );