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
1 changed files with 1 additions and 0 deletions

View File

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