A load more C++11 tweaks - mostly moving initialisations from constructors to inline

This commit is contained in:
Phil Nash
2017-04-25 18:56:53 +01:00
parent cc8206f4c3
commit e749724a11
23 changed files with 64 additions and 145 deletions

View File

@@ -20,8 +20,7 @@ namespace Catch {
public:
XmlReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config ),
m_xml(_config.stream()),
m_sectionDepth( 0 )
m_xml(_config.stream())
{
m_reporterPrefs.shouldRedirectStdOut = true;
}
@@ -219,7 +218,7 @@ namespace Catch {
private:
Timer m_testCaseTimer;
XmlWriter m_xml;
int m_sectionDepth;
int m_sectionDepth = 0;
};
INTERNAL_CATCH_REGISTER_REPORTER( "xml", XmlReporter )