Initialize JunitReporter::unexpectedExceptions in constructor

This is not needed for correctness, but will prevent PVS warning
from triggering, and there is basically no performance difference.

Closes #951
This commit is contained in:
Martin Hořeňovský 2017-07-10 10:28:10 +02:00
parent a53ea30723
commit 106d7e2a74

View File

@ -52,6 +52,7 @@ namespace Catch {
JunitReporter( ReporterConfig const& _config ) JunitReporter( ReporterConfig const& _config )
: CumulativeReporterBase( _config ), : CumulativeReporterBase( _config ),
xml( _config.stream() ), xml( _config.stream() ),
unexpectedExceptions( 0 ),
m_okToFail( false ) m_okToFail( false )
{ {
m_reporterPrefs.shouldRedirectStdOut = true; m_reporterPrefs.shouldRedirectStdOut = true;