Skip to content

Commit c092c11

Browse files
committed
Default initialize Variables members
1 parent a38f304 commit c092c11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/client/MutateClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct Variables
7171
std::optional<response::StringType> clientMutationId {};
7272
};
7373

74-
CompleteTaskInput input;
74+
CompleteTaskInput input {};
7575
};
7676

7777
response::Value serializeVariables(Variables&& variables);

src/ClientGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static_assert(graphql::internal::MinorVersion == )cpp"
285285
for (const auto& variable : variables)
286286
{
287287
headerFile << R"cpp( )cpp" << _schemaLoader.getCppType(variable.type->name())
288-
<< R"cpp( )cpp" << variable.cppName << R"cpp(;
288+
<< R"cpp( )cpp" << variable.cppName << R"cpp( {};
289289
)cpp";
290290
}
291291

0 commit comments

Comments
 (0)