1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-04-01 08:04:46 +02:00

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 
This commit is contained in:
Martin Hořeňovský 2017-07-10 10:28:10 +02:00
parent a53ea30723
commit 106d7e2a74

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