From 2c04850f88b03118ffde69f6f8a90a6fda51c130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 29 May 2021 13:49:33 +0200 Subject: [PATCH] Add some constexpr in compact reporter impl --- src/catch2/reporters/catch_reporter_compact.cpp | 4 ++-- 1 file 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{};