From 9fb38fcc1413103d03c72b6a281351ba2a57b2be Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 25 Jun 2018 20:18:41 +0100 Subject: [PATCH] Restored description field in SectionInfo for now - but marked it deprecated --- examples/210-Evt-EventListeners.cpp | 3 +-- include/internal/catch_section_info.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/210-Evt-EventListeners.cpp b/examples/210-Evt-EventListeners.cpp index d1df6b7b..7df93d71 100644 --- a/examples/210-Evt-EventListeners.cpp +++ b/examples/210-Evt-EventListeners.cpp @@ -187,8 +187,7 @@ void print( std::ostream& os, int const level, std::string const& title, Catch:: void print( std::ostream& os, int const level, std::string const& title, Catch::SectionInfo const& info ) { os << ws(level ) << title << ":\n" - << ws(level+1) << "- name: " << info.name << "\n" - << ws(level+1) << "- description: '" << info.description << "'\n"; + << ws(level+1) << "- name: " << info.name << "\n"; print( os, level+1 , "- lineInfo", info.lineInfo ); } diff --git a/include/internal/catch_section_info.h b/include/internal/catch_section_info.h index 832ed7d9..9cf792e8 100644 --- a/include/internal/catch_section_info.h +++ b/include/internal/catch_section_info.h @@ -27,6 +27,7 @@ namespace Catch { std::string const& ) : SectionInfo( _lineInfo, _name ) {} std::string name; + std::string description; // !Deprecated: this will always be empty SourceLineInfo lineInfo; };