Skip to content

Commit 6570214

Browse files
committed
Add default initializers to the other Operation members
1 parent 0cf6fd9 commit 6570214

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/RequestLoader.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ struct [[nodiscard]] Operation
6969
const peg::ast_node* operation;
7070
std::string_view name;
7171
std::string_view type;
72-
ResponseType responseType;
73-
RequestVariableList variables;
74-
internal::string_view_set inputTypeNames;
75-
RequestInputTypeList referencedInputTypes;
76-
internal::string_view_set enumNames;
77-
RequestSchemaTypeList referencedEnums;
72+
ResponseType responseType {};
73+
RequestVariableList variables {};
74+
internal::string_view_set inputTypeNames {};
75+
RequestInputTypeList referencedInputTypes {};
76+
internal::string_view_set enumNames {};
77+
RequestSchemaTypeList referencedEnums {};
7878
};
7979

8080
using OperationList = std::vector<Operation>;

src/RequestLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ void RequestLoader::findOperation()
727727

728728
if (!_requestOptions.operationName || name == *_requestOptions.operationName)
729729
{
730-
Operation operation { &operationDefinition, name, operationType, {} };
730+
Operation operation { &operationDefinition, name, operationType };
731731

732732
_operations.push_back(std::move(operation));
733733

0 commit comments

Comments
 (0)