diff options
| author | Chris Thrasher | 2025-09-21 18:05:21 -0600 |
|---|---|---|
| committer | Chris Thrasher | 2025-09-22 11:50:44 -0600 |
| commit | 8efee9b7632e6dd014b5b041ee326eef7d0b09e6 (patch) | |
| tree | fbc1657a5d7d414fbe93a412990bcf5cfb2df438 /docs | |
| parent | a5735af2f7d956600250541d289c552ace7e87ae (diff) | |
| download | catch3-devel-c++17.tar.gz | |
Use std::string_viewdevel-c++17
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/reporter-events.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/reporter-events.md b/docs/reporter-events.md index 015f67be..a9ed40cf 100644 --- a/docs/reporter-events.md +++ b/docs/reporter-events.md @@ -109,10 +109,10 @@ and then `assertionEnded` event is emitted. > [Introduced](https://github.com/catchorg/Catch2/issues/1616) in Catch2 2.9.0. ```cpp -void benchmarkPreparing( StringRef name ) override; +void benchmarkPreparing( std::string_view name ) override; void benchmarkStarting( BenchmarkInfo const& benchmarkInfo ) override; void benchmarkEnded( BenchmarkStats<> const& benchmarkStats ) override; -void benchmarkFailed( StringRef error ) override; +void benchmarkFailed( std::string_view error ) override; ``` Due to the benchmark lifecycle being bit more complicated, the benchmarking @@ -153,9 +153,9 @@ void listTags( std::vector<TagInfo> const& tagInfos ); ## Miscellaneous events ```cpp -void reportInvalidTestSpec( StringRef unmatchedSpec ); -void fatalErrorEncountered( StringRef error ); -void noMatchingTestCases( StringRef unmatchedSpec ); +void reportInvalidTestSpec( std::string_view unmatchedSpec ); +void fatalErrorEncountered( std::string_view error ); +void noMatchingTestCases( std::string_view unmatchedSpec ); ``` These are one-off events that do not neatly fit into other categories. |