@@ -94,7 +94,7 @@ namespace daw::json_to_cpp {
9494 }
9595 // Look for characters that are not in the basic standard 5.10
9696 // non-digit or digit and escape them
97- std::string new_name{} ;
97+ auto new_name = std::string ( ) ;
9898 daw::algorithm::transform_it (
9999 name.begin ( ), name.end ( ), std::back_inserter ( new_name ),
100100 []( char c, auto it ) {
@@ -133,7 +133,7 @@ namespace daw::json_to_cpp {
133133 return ;
134134 }
135135
136- std::vector<std::pair<std::string, types::ti_value>> diff{} ;
136+ auto diff = std::vector<std::pair<std::string, types::ti_value>>( ) ;
137137 for ( auto &orig_child : pos->children ) {
138138 auto child_pos = std::find_if (
139139 obj.children .begin ( ), obj.children .end ( ),
@@ -161,7 +161,7 @@ namespace daw::json_to_cpp {
161161 types::ti_value merge_array_values ( types::ti_value const &a,
162162 types::ti_value const &b ) {
163163 using daw::json::json_value_t ;
164- types::ti_value result{} ;
164+ auto result = types::ti_value ( ) ;
165165 if ( a.is_null ( ) ) {
166166 result = b;
167167 result.is_optional ( ) = true ;
@@ -336,7 +336,7 @@ namespace daw::json_to_cpp {
336336 void generate_json_link_maps ( bool definition, config_t &config,
337337 types::ti_object const &cur_obj ) {
338338
339- return generate_json_link_maps ( std::integral_constant<int , 3 >{} ,
339+ return generate_json_link_maps ( std::integral_constant<int , 3 >( ) ,
340340 definition, config, cur_obj );
341341 }
342342
@@ -431,7 +431,7 @@ namespace daw::json_to_cpp {
431431 }
432432
433433 void generate_cpp ( daw::string_view json_string, config_t &config ) {
434- state_t obj_state{} ;
434+ auto obj_state = state_t ( ) ;
435435 auto json_obj = ::daw::json::parse_json ( json_string );
436436 auto obj_info = parse_json_object ( json_obj, obj_state, config );
437437 generate_code ( obj_info, config, obj_state );
0 commit comments