diff options
| author | Martin Hořeňovský | 2021-05-29 13:49:33 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-05-29 13:49:33 +0200 |
| commit | 2c04850f88b03118ffde69f6f8a90a6fda51c130 (patch) | |
| tree | e101db0f33ebdb2af36409a1cf72e3c92bdf2a0e /src/catch2 | |
| parent | c9027375a3e57b59ecdeba696d3031163e473108 (diff) | |
| download | catch3-2c04850f88b03118ffde69f6f8a90a6fda51c130.tar.gz | |
Add some constexpr in compact reporter impl
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_compact.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/reporters/catch_reporter_compact.cpp b/src/catch2/reporters/catch_reporter_compact.cpp index a323e1fd..880a6c87 100644 --- a/src/catch2/reporters/catch_reporter_compact.cpp +++ b/src/catch2/reporters/catch_reporter_compact.cpp @@ -19,9 +19,9 @@ namespace { // Colour::LightGrey - Catch::Colour::Code dimColour() { return Catch::Colour::FileName; } + constexpr Catch::Colour::Code dimColour() { return Catch::Colour::FileName; } - Catch::StringRef bothOrAll( std::size_t count ) { + constexpr Catch::StringRef bothOrAll( std::size_t count ) { switch (count) { case 1: return Catch::StringRef{}; |