mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	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
	 Martin Hořeňovský
					Martin Hořeňovský