From 3f41feb6e022a30cfce39ec40c7ffda46d75193d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 26 May 2023 15:06:49 +0200 Subject: style: Use designated initializers This feature has been introduced with C++20. --- src/buildtool/execution_engine/executor/executor.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_engine/executor/executor.hpp') diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index aa6635ba..f239c381 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -399,7 +399,8 @@ class ExecutorImpl { IsExecutableObject(*object_type)}}})) { return std::nullopt; } - return Artifact::ObjectInfo{std::move(digest), *object_type}; + return Artifact::ObjectInfo{.digest = std::move(digest), + .type = *object_type}; } /// \brief Add digests and object type to artifact nodes for all outputs of -- cgit v1.2.3