Builds almost completely cleanly with -WEverything in LLVM

This commit is contained in:
Phil Nash 2012-08-13 07:46:10 +01:00
parent cdc64a138b
commit a695eb9006
37 changed files with 1045 additions and 966 deletions

View file

@ -64,8 +64,9 @@ namespace Catch {
private:
Config( const Config& other );
Config& operator = ( const Config& other );
virtual void dummy();
public:
Config()
: m_streambuf( NULL ),
m_os( std::cout.rdbuf() )
@ -77,7 +78,7 @@ namespace Catch {
m_os( std::cout.rdbuf() )
{}
~Config() {
virtual ~Config() {
m_os.rdbuf( std::cout.rdbuf() );
delete m_streambuf;
}