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

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-09-07 14:38:39 +0200
committerMartin Hořeňovský2019-09-08 14:14:14 +0200
commitfbbaadb704fbff5dc49ee299df003a9532fe3d2f (patch)
tree142f84587ebde92d28f75d252f084faaa9dc1368 /include
parentdd1f0f1c7298cb51389cf5a2f8946aa0c8ca621c (diff)
downloadcatch3-fbbaadb704fbff5dc49ee299df003a9532fe3d2f.tar.gz
Use StringRef literal for unknown enum values instead of string lit
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_enum_values_registry.cpp2
1 files changed, 1 insertions, 1 deletions
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<EnumInfo> makeEnumInfo( StringRef enumName, StringRef allValueNames, std::vector<int> const& values ) {