mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Directly construct empty string for invalid SectionInfo
This commit is contained in:
parent
f04c93462b
commit
0477326ad9
@ -26,7 +26,7 @@ namespace Catch {
|
|||||||
Section::Section( SourceLineInfo const& _lineInfo,
|
Section::Section( SourceLineInfo const& _lineInfo,
|
||||||
StringRef _name,
|
StringRef _name,
|
||||||
const char* const ):
|
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(
|
m_sectionIncluded(
|
||||||
getResultCapture().sectionStarted( _name, _lineInfo, m_assertions ) ) {
|
getResultCapture().sectionStarted( _name, _lineInfo, m_assertions ) ) {
|
||||||
// We delay initialization the SectionInfo member until we know
|
// We delay initialization the SectionInfo member until we know
|
||||||
|
Loading…
Reference in New Issue
Block a user