Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-02-19 23:56:27 +0100
committerMartin Hořeňovský2023-02-20 14:32:14 +0100
commit0477326ad908d1c96dd3118b54fccc95e5628ef8 (patch)
tree85056c6f00e4ca8d7fdfedcc00b4f08426f565cf /src
parentf04c93462b3eba1845ed05bb9198d14cbba60b0f (diff)
downloadcatch3-0477326ad908d1c96dd3118b54fccc95e5628ef8.tar.gz
Directly construct empty string for invalid SectionInfo
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_section.cpp2
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