1
0
forked from 0ad/0ad

Remove unused typedef in json_spirit

This fixes -Wunused-local-typedef with macOS's clang10.
This commit is contained in:
Nicolas Auvray 2024-09-14 19:24:07 +02:00
parent 9f41012b79
commit d929c54571
Signed by: Itms
GPG Key ID: C7E52BD14CE14E09

View File

@ -34,8 +34,6 @@ namespace json_spirit
template< class String_type > template< class String_type >
String_type non_printable_to_string( unsigned int c ) String_type non_printable_to_string( unsigned int c )
{ {
typedef typename String_type::value_type Char_type;
String_type result( 6, '\\' ); String_type result( 6, '\\' );
result[1] = 'u'; result[1] = 'u';