mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-24 13:35:40 +02:00
Fix -Wshadow warnings produced by GCC.
This commit is contained in:
@@ -118,10 +118,10 @@ namespace Catch {
|
||||
}
|
||||
|
||||
void useStream( std::string const& streamName ) {
|
||||
Stream stream = createStream( streamName );
|
||||
setStreamBuf( stream.streamBuf );
|
||||
Stream newStream = createStream( streamName );
|
||||
setStreamBuf( newStream.streamBuf );
|
||||
m_stream.release();
|
||||
m_stream = stream;
|
||||
m_stream = newStream;
|
||||
}
|
||||
|
||||
std::string getReporterName() const { return m_data.reporterName; }
|
||||
|
@@ -58,11 +58,11 @@ namespace Catch {
|
||||
|
||||
public:
|
||||
|
||||
explicit RunContext( Ptr<IConfig const> const& config, Ptr<IStreamingReporter> const& reporter )
|
||||
: m_runInfo( config->name() ),
|
||||
explicit RunContext( Ptr<IConfig const> const& cfg, Ptr<IStreamingReporter> const& reporter )
|
||||
: m_runInfo( cfg->name() ),
|
||||
m_context( getCurrentMutableContext() ),
|
||||
m_activeTestCase( NULL ),
|
||||
m_config( config ),
|
||||
m_config( cfg ),
|
||||
m_reporter( reporter ),
|
||||
m_prevRunner( m_context.getRunner() ),
|
||||
m_prevResultCapture( m_context.getResultCapture() ),
|
||||
|
@@ -13,7 +13,7 @@
|
||||
namespace Catch {
|
||||
|
||||
// These numbers are maintained by a script
|
||||
Version libraryVersion( 1, 0, 53, "master" );
|
||||
Version libraryVersion( 1, 0, 58, "master" );
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED
|
||||
|
Reference in New Issue
Block a user