Skip to content

Commit cfb7b72

Browse files
committed
Be more explicit in the std::make_optional argument
1 parent ddf63e0 commit cfb7b72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphQLService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,8 @@ void SelectionVisitor::visitField(const peg::ast_node& field)
10531053
selection,
10541054
_fragments,
10551055
_variables));
1056-
auto location = std::make_optional<schema_location>(position.line, position.column);
1057-
auto path = std::make_optional<error_path>(buildErrorPath(selectionSetParams.errorPath));
1056+
auto location = std::make_optional(schema_location { position.line, position.column });
1057+
auto path = std::make_optional(buildErrorPath(selectionSetParams.errorPath));
10581058

10591059
_values.push_back({ alias, std::move(location), std::move(path), std::move(result) });
10601060
}

0 commit comments

Comments
 (0)