diff options
| author | Martin Hořeňovský | 2021-08-10 00:14:18 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-08-11 22:51:57 +0200 |
| commit | 3ec63324a823c19697720fda3eab1f18d297210c (patch) | |
| tree | af53aef5eca236dbc735c62772406e9379cd24e5 /src/catch2/catch_config.cpp | |
| parent | 7d0770adf28737ec681bec40e4c3fdb650a4f6ad (diff) | |
| download | catch3-3ec63324a823c19697720fda3eab1f18d297210c.tar.gz | |
Replace owning naked IStream pointers with unique_ptrs
Diffstat (limited to 'src/catch2/catch_config.cpp')
| -rw-r--r-- | src/catch2/catch_config.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/catch2/catch_config.cpp b/src/catch2/catch_config.cpp index 7a4a0bda..0a3f83a2 100644 --- a/src/catch2/catch_config.cpp +++ b/src/catch2/catch_config.cpp @@ -18,7 +18,7 @@ namespace Catch { Config::Config( ConfigData const& data ) : m_data( data ), - m_stream( openStream() ) + m_stream( Catch::makeStream(m_data.outputFilename) ) { // We need to trim filter specs to avoid trouble with superfluous // whitespace (esp. important for bdd macros, as those are manually @@ -86,8 +86,4 @@ namespace Catch { unsigned int Config::benchmarkResamples() const { return m_data.benchmarkResamples; } std::chrono::milliseconds Config::benchmarkWarmupTime() const { return std::chrono::milliseconds(m_data.benchmarkWarmupTime); } - IStream const* Config::openStream() { - return Catch::makeStream(m_data.outputFilename); - } - } // end namespace Catch |