File tree Expand file tree Collapse file tree 7 files changed +49
-49
lines changed
Expand file tree Collapse file tree 7 files changed +49
-49
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ enum class Episode
3030
3131struct ReviewInput
3232{
33- response::IntType stars;
34- std::optional<response::StringType> commentary;
33+ response::IntType stars {} ;
34+ std::optional<response::StringType> commentary {} ;
3535};
3636
3737namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
3131
3232struct CompleteTaskInput
3333{
34- response::IdType id;
35- std::optional<TaskState> testTaskState;
36- std::optional<response::BooleanType> isComplete;
37- std::optional<response::StringType> clientMutationId;
34+ response::IdType id {} ;
35+ std::optional<TaskState> testTaskState {} ;
36+ std::optional<response::BooleanType> isComplete {} ;
37+ std::optional<response::StringType> clientMutationId {} ;
3838};
3939
4040struct ThirdNestedInput
4141{
42- response::IdType id;
42+ response::IdType id {} ;
4343};
4444
4545struct FourthNestedInput
4646{
47- response::IdType id;
47+ response::IdType id {} ;
4848};
4949
5050struct SecondNestedInput
5151{
52- response::IdType id;
53- ThirdNestedInput third;
52+ response::IdType id {} ;
53+ ThirdNestedInput third {} ;
5454};
5555
5656struct FirstNestedInput
5757{
58- response::IdType id;
59- SecondNestedInput second;
60- ThirdNestedInput third;
58+ response::IdType id {} ;
59+ SecondNestedInput second {} ;
60+ ThirdNestedInput third {} ;
6161};
6262
6363namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
3131
3232struct CompleteTaskInput
3333{
34- response::IdType id;
35- std::optional<TaskState> testTaskState;
36- std::optional<response::BooleanType> isComplete;
37- std::optional<response::StringType> clientMutationId;
34+ response::IdType id {} ;
35+ std::optional<TaskState> testTaskState {} ;
36+ std::optional<response::BooleanType> isComplete {} ;
37+ std::optional<response::StringType> clientMutationId {} ;
3838};
3939
4040struct ThirdNestedInput
4141{
42- response::IdType id;
42+ response::IdType id {} ;
4343};
4444
4545struct FourthNestedInput
4646{
47- response::IdType id;
47+ response::IdType id {} ;
4848};
4949
5050struct SecondNestedInput
5151{
52- response::IdType id;
53- ThirdNestedInput third;
52+ response::IdType id {} ;
53+ ThirdNestedInput third {} ;
5454};
5555
5656struct FirstNestedInput
5757{
58- response::IdType id;
59- SecondNestedInput second;
60- ThirdNestedInput third;
58+ response::IdType id {} ;
59+ SecondNestedInput second {} ;
60+ ThirdNestedInput third {} ;
6161};
6262
6363namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
3131
3232struct CompleteTaskInput
3333{
34- response::IdType id;
35- std::optional<TaskState> testTaskState;
36- std::optional<response::BooleanType> isComplete;
37- std::optional<response::StringType> clientMutationId;
34+ response::IdType id {} ;
35+ std::optional<TaskState> testTaskState {} ;
36+ std::optional<response::BooleanType> isComplete {} ;
37+ std::optional<response::StringType> clientMutationId {} ;
3838};
3939
4040struct ThirdNestedInput
4141{
42- response::IdType id;
42+ response::IdType id {} ;
4343};
4444
4545struct FourthNestedInput
4646{
47- response::IdType id;
47+ response::IdType id {} ;
4848};
4949
5050struct SecondNestedInput
5151{
52- response::IdType id;
53- ThirdNestedInput third;
52+ response::IdType id {} ;
53+ ThirdNestedInput third {} ;
5454};
5555
5656struct FirstNestedInput
5757{
58- response::IdType id;
59- SecondNestedInput second;
60- ThirdNestedInput third;
58+ response::IdType id {} ;
59+ SecondNestedInput second {} ;
60+ ThirdNestedInput third {} ;
6161};
6262
6363namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
3131
3232struct CompleteTaskInput
3333{
34- response::IdType id;
35- std::optional<TaskState> testTaskState;
36- std::optional<response::BooleanType> isComplete;
37- std::optional<response::StringType> clientMutationId;
34+ response::IdType id {} ;
35+ std::optional<TaskState> testTaskState {} ;
36+ std::optional<response::BooleanType> isComplete {} ;
37+ std::optional<response::StringType> clientMutationId {} ;
3838};
3939
4040struct ThirdNestedInput
4141{
42- response::IdType id;
42+ response::IdType id {} ;
4343};
4444
4545struct FourthNestedInput
4646{
47- response::IdType id;
47+ response::IdType id {} ;
4848};
4949
5050struct SecondNestedInput
5151{
52- response::IdType id;
53- ThirdNestedInput third;
52+ response::IdType id {} ;
53+ ThirdNestedInput third {} ;
5454};
5555
5656struct FirstNestedInput
5757{
58- response::IdType id;
59- SecondNestedInput second;
60- ThirdNestedInput third;
58+ response::IdType id {} ;
59+ SecondNestedInput second {} ;
60+ ThirdNestedInput third {} ;
6161};
6262
6363namespace object {
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ enum class CatCommand
3535
3636struct ComplexInput
3737{
38- std::optional<response::StringType> name;
39- std::optional<response::StringType> owner;
38+ std::optional<response::StringType> name {} ;
39+ std::optional<response::StringType> owner {} ;
4040};
4141
4242namespace object {
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ static_assert(graphql::internal::MinorVersion == )cpp"
242242)cpp" ;
243243 for (const auto & inputField : inputType.fields )
244244 {
245- headerFile << R"cpp( )cpp" << getFieldDeclaration (inputField) << R"cpp( ;
245+ headerFile << R"cpp( )cpp" << getFieldDeclaration (inputField) << R"cpp( {} ;
246246)cpp" ;
247247 }
248248 headerFile << R"cpp( };
You can’t perform that action at this time.
0 commit comments