File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
8080using OperationList = std::vector<Operation>;
Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ void RequestLoader::findOperation()
727727
728728 if (!_requestOptions.operationName || name == *_requestOptions.operationName )
729729 {
730- _operations.push_back (Operation { &operationDefinition, name, operationType } );
730+ _operations.emplace_back ( &operationDefinition, name, operationType);
731731
732732 if (_requestOptions.operationName )
733733 {
You can’t perform that action at this time.
0 commit comments