Add some constexpr in compact reporter impl

This commit is contained in:
Martin Hořeňovský 2021-05-29 13:49:33 +02:00
parent c9027375a3
commit 2c04850f88
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -19,9 +19,9 @@
namespace { namespace {
// Colour::LightGrey // 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) { switch (count) {
case 1: case 1:
return Catch::StringRef{}; return Catch::StringRef{};