forked from catchorg/Catch2
Use StringRef literal for unknown enum values instead of string lit
This commit is contained in:
@@ -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 ) {
|
||||||
|
Reference in New Issue
Block a user