Skip to content

Commit 121b56f

Browse files
committed
Gcc doesn't like the initializer list syntax with default member initializers
1 parent 818dff1 commit 121b56f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

GraphQLService.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,9 @@ std::future<response::Value> ModifiedResult<Object>::convert(std::future<std::sh
605605
// overwritten by the innermost fragment.
606606
struct FragmentDirectives
607607
{
608-
response::Value fragmentDefinitionDirectives { response::Type::Map };
609-
response::Value fragmentSpreadDirectives { response::Type::Map };
610-
response::Value inlineFragmentDirectives { response::Type::Map };
608+
response::Value fragmentDefinitionDirectives;
609+
response::Value fragmentSpreadDirectives;
610+
response::Value inlineFragmentDirectives;
611611
};
612612

613613
// SelectionVisitor visits the AST and resolves a field or fragment, unless it's skipped by
@@ -649,7 +649,11 @@ SelectionVisitor::SelectionVisitor(const SelectionSetParams& selectionSetParams,
649649
, _typeNames(typeNames)
650650
, _resolvers(resolvers)
651651
{
652-
_fragmentDirectives.push({});
652+
_fragmentDirectives.push({
653+
response::Value(response::Type::Map),
654+
response::Value(response::Type::Map),
655+
response::Value(response::Type::Map)
656+
});
653657
}
654658

655659
std::future<response::Value> SelectionVisitor::getValues()

0 commit comments

Comments
 (0)