File tree Expand file tree Collapse file tree 5 files changed +27
-27
lines changed
Expand file tree Collapse file tree 5 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ enum class Episode
3030
3131struct ReviewInput
3232{
33- int stars;
34- std::optional<std::string> commentary;
33+ int stars {} ;
34+ std::optional<std::string> 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<bool > isComplete;
37- std::optional<std::string> clientMutationId;
34+ response::IdType id {} ;
35+ std::optional<TaskState> testTaskState {} ;
36+ std::optional<bool > isComplete {} ;
37+ std::optional<std::string> 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<bool > isComplete;
37- std::optional<std::string> clientMutationId;
34+ response::IdType id {} ;
35+ std::optional<TaskState> testTaskState {} ;
36+ std::optional<bool > isComplete {} ;
37+ std::optional<std::string> 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<std::string> name;
39- std::optional<std::string> owner;
38+ std::optional<std::string> name {} ;
39+ std::optional<std::string> owner {} ;
4040};
4141
4242namespace object {
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ static_assert(graphql::internal::MinorVersion == )cpp"
208208)cpp" ;
209209 for (const auto & inputField : inputType.fields )
210210 {
211- headerFile << getFieldDeclaration (inputField) << R"cpp( ;
211+ headerFile << getFieldDeclaration (inputField) << R"cpp( {} ;
212212)cpp" ;
213213 }
214214 headerFile << R"cpp( };
You can’t perform that action at this time.
0 commit comments