Skip to content

Commit 9e23b7c

Browse files
committed
Default initialize other members since GCC doesn't like it
1 parent b5c3f94 commit 9e23b7c

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-
_operations.push_back(Operation { &operationDefinition, name, operationType });
730+
_operations.emplace_back(&operationDefinition, name, operationType);
731731

732732
if (_requestOptions.operationName)
733733
{

0 commit comments

Comments
 (0)