Use StringRef literal for unknown enum values instead of string lit

This commit is contained in:
Martin Hořeňovský 2019-09-07 14:38:39 +02:00
parent dd1f0f1c72
commit fbbaadb704
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -36,7 +36,7 @@ namespace Catch {
if( valueToName.first == value ) if( valueToName.first == value )
return valueToName.second; 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 ) { std::unique_ptr<EnumInfo> makeEnumInfo( StringRef enumName, StringRef allValueNames, std::vector<int> const& values ) {