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
69
69
const peg::ast_node* operation;
70
70
std::string_view name;
71
71
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 {} ;
78
78
};
79
79
80
80
using OperationList = std::vector<Operation>;
Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ void RequestLoader::findOperation()
727
727
728
728
if (!_requestOptions.operationName || name == *_requestOptions.operationName )
729
729
{
730
- _operations.push_back (Operation { &operationDefinition, name, operationType } );
730
+ _operations.emplace_back ( &operationDefinition, name, operationType);
731
731
732
732
if (_requestOptions.operationName )
733
733
{
You can’t perform that action at this time.
0 commit comments