From fbbaadb704fbff5dc49ee299df003a9532fe3d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 7 Sep 2019 14:38:39 +0200 Subject: [PATCH] Use StringRef literal for unknown enum values instead of string lit --- include/internal/catch_enum_values_registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_enum_values_registry.cpp b/include/internal/catch_enum_values_registry.cpp index 9e6f2ecb..de8181fd 100644 --- a/include/internal/catch_enum_values_registry.cpp +++ b/include/internal/catch_enum_values_registry.cpp @@ -36,7 +36,7 @@ namespace Catch { if( valueToName.first == value ) return valueToName.second; } - return "{** unexpected enum value **}"; + return "{** unexpected enum value **}"_sr; } std::unique_ptr makeEnumInfo( StringRef enumName, StringRef allValueNames, std::vector const& values ) {