diff options
| author | Martin Hořeňovský | 2021-05-30 23:45:55 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-05-31 08:42:03 +0200 |
| commit | c9371865d4e08d6e9907597ca827c295235c0594 (patch) | |
| tree | 6277503076bcfd8a74075aa9d6d77aef35c836f7 /src/catch2/interfaces | |
| parent | 5741de9ccdca3f41131c377394b4e3db0f11686c (diff) | |
| download | catch3-c9371865d4e08d6e9907597ca827c295235c0594.tar.gz | |
Use StringRef as the argument to benchmark{Failed,Preparing}
Diffstat (limited to 'src/catch2/interfaces')
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_capture.hpp | 4 | ||||
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_reporter.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_capture.hpp b/src/catch2/interfaces/catch_interfaces_capture.hpp index b77b4d85..2e7a631f 100644 --- a/src/catch2/interfaces/catch_interfaces_capture.hpp +++ b/src/catch2/interfaces/catch_interfaces_capture.hpp @@ -44,10 +44,10 @@ namespace Catch { virtual auto acquireGeneratorTracker( StringRef generatorName, SourceLineInfo const& lineInfo ) -> IGeneratorTracker& = 0; - virtual void benchmarkPreparing( std::string const& name ) = 0; + virtual void benchmarkPreparing( StringRef name ) = 0; virtual void benchmarkStarting( BenchmarkInfo const& info ) = 0; virtual void benchmarkEnded( BenchmarkStats<> const& stats ) = 0; - virtual void benchmarkFailed( std::string const& error ) = 0; + virtual void benchmarkFailed( StringRef error ) = 0; virtual void pushScopedMessage( MessageInfo const& message ) = 0; virtual void popScopedMessage( MessageInfo const& message ) = 0; diff --git a/src/catch2/interfaces/catch_interfaces_reporter.hpp b/src/catch2/interfaces/catch_interfaces_reporter.hpp index 5a4c31a8..aeb78b61 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.hpp @@ -201,10 +201,10 @@ namespace Catch { virtual void testCaseStarting( TestCaseInfo const& testInfo ) = 0; virtual void sectionStarting( SectionInfo const& sectionInfo ) = 0; - virtual void benchmarkPreparing( std::string const& ) {} + virtual void benchmarkPreparing( StringRef ) {} virtual void benchmarkStarting( BenchmarkInfo const& ) {} virtual void benchmarkEnded( BenchmarkStats<> const& ) {} - virtual void benchmarkFailed( std::string const& ) {} + virtual void benchmarkFailed( StringRef ) {} virtual void assertionStarting( AssertionInfo const& assertionInfo ) = 0; |