diff options
| author | Martin Hořeňovský | 2021-09-08 00:01:31 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-09-08 00:01:31 +0200 |
| commit | 29caae5ce544858d86d680b783d4c8a3126f3b5d (patch) | |
| tree | 0c0a04bc08bf9379e14dd6b22d392152363a5fce /src/catch2/catch_config.cpp | |
| parent | ea49210eae6d04aae48d54bccc2a69776b3c6fd0 (diff) | |
| download | catch3-29caae5ce544858d86d680b783d4c8a3126f3b5d.tar.gz | |
Pass around the test suite name by StringRef
Diffstat (limited to 'src/catch2/catch_config.cpp')
| -rw-r--r-- | src/catch2/catch_config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/catch_config.cpp b/src/catch2/catch_config.cpp index e6a2f714..92fcff20 100644 --- a/src/catch2/catch_config.cpp +++ b/src/catch2/catch_config.cpp @@ -65,7 +65,7 @@ namespace Catch { // IConfig interface bool Config::allowThrows() const { return !m_data.noThrow; } std::ostream& Config::stream() const { return m_stream->stream(); } - std::string Config::name() const { return m_data.name.empty() ? m_data.processName : m_data.name; } + StringRef Config::name() const { return m_data.name.empty() ? m_data.processName : m_data.name; } bool Config::includeSuccessfulResults() const { return m_data.showSuccessfulTests; } bool Config::warnAboutMissingAssertions() const { return !!(m_data.warnings & WarnAbout::NoAssertions); } bool Config::warnAboutNoTests() const { return !!(m_data.warnings & WarnAbout::NoTests); } |