Some layout reformatting. I think everything is in my preferred style now

This commit is contained in:
Phil Nash committed 2011-02-03 20:00:46 +00:00
1 parent d16ce74dbb
commit cf7b6881c9
8 files changed
+427 -87

No files matched your search

+23 -5
View File
@@ -25,17 +25,26 @@ namespace Catch
WriterF m_writer;
public:
StreamBufImpl()
///////////////////////////////////////////////////////////////////////
StreamBufImpl
()
{
setp( data, data + sizeof(data) );
}
~StreamBufImpl()
///////////////////////////////////////////////////////////////////////
~StreamBufImpl
()
{
sync();
}
private:
int overflow( int c )
///////////////////////////////////////////////////////////////////////
int overflow
(
int c
)
{
sync();
@@ -49,7 +58,9 @@ namespace Catch
return 0;
}
int sync()
///////////////////////////////////////////////////////////////////////
int sync
()
{
if( pbase() != pptr() )
{
@@ -60,9 +71,16 @@ namespace Catch
}
};
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
struct OutputDebugWriter
{
void operator()( const std::string &str )
///////////////////////////////////////////////////////////////////////
void operator()
(
const std::string &str
)
{
writeToDebugConsole( str );
}