diff options
| author | Martin Hořeňovský | 2023-02-19 23:56:27 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-02-20 14:32:14 +0100 |
| commit | 0477326ad908d1c96dd3118b54fccc95e5628ef8 (patch) | |
| tree | 85056c6f00e4ca8d7fdfedcc00b4f08426f565cf | |
| parent | f04c93462b3eba1845ed05bb9198d14cbba60b0f (diff) | |
| download | catch3-0477326ad908d1c96dd3118b54fccc95e5628ef8.tar.gz | |
Directly construct empty string for invalid SectionInfo
| -rw-r--r-- | src/catch2/internal/catch_section.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_section.cpp b/src/catch2/internal/catch_section.cpp index ab9284c7..061732b1 100644 --- a/src/catch2/internal/catch_section.cpp +++ b/src/catch2/internal/catch_section.cpp @@ -26,7 +26,7 @@ namespace Catch { Section::Section( SourceLineInfo const& _lineInfo, StringRef _name, const char* const ): - m_info( { "invalid", static_cast<std::size_t>(-1) }, "" ), + m_info( { "invalid", static_cast<std::size_t>( -1 ) }, std::string{} ), m_sectionIncluded( getResultCapture().sectionStarted( _name, _lineInfo, m_assertions ) ) { // We delay initialization the SectionInfo member until we know |