diff options
| author | Martin Hořeňovský | 2019-09-07 14:38:39 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-09-08 14:14:14 +0200 |
| commit | fbbaadb704fbff5dc49ee299df003a9532fe3d2f (patch) | |
| tree | 142f84587ebde92d28f75d252f084faaa9dc1368 /include | |
| parent | dd1f0f1c7298cb51389cf5a2f8946aa0c8ca621c (diff) | |
| download | catch3-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.cpp | 2 |
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 ) { |