Replace owning naked IStream pointers with unique_ptrs

This commit is contained in:
Martin Hořeňovský committed 2021-08-11 22:51:57 +02:00
1 parent 7d0770adf2
commit 3ec63324a8
4 files changed
+7 -12

No files matched your search

+1 -5
View File
@@ -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