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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-29 13:49:33 +0200
committerMartin Hořeňovský2021-05-29 13:49:33 +0200
commit2c04850f88b03118ffde69f6f8a90a6fda51c130 (patch)
treee101db0f33ebdb2af36409a1cf72e3c92bdf2a0e
parentc9027375a3e57b59ecdeba696d3031163e473108 (diff)
downloadcatch3-2c04850f88b03118ffde69f6f8a90a6fda51c130.tar.gz
Add some constexpr in compact reporter impl
-rw-r--r--src/catch2/reporters/catch_reporter_compact.cpp4
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{};