summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/fpath_git_map.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-05-26 15:06:49 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-06-06 09:55:17 +0200
commit3f41feb6e022a30cfce39ec40c7ffda46d75193d (patch)
tree24f8f8d5047582bd936b17d96e3f7b4b14020c79 /src/other_tools/root_maps/fpath_git_map.cpp
parente4214ea95874bdd5bc059d0892f90c09df7b664d (diff)
downloadjustbuild-3f41feb6e022a30cfce39ec40c7ffda46d75193d.tar.gz
style: Use designated initializers
This feature has been introduced with C++20.
Diffstat (limited to 'src/other_tools/root_maps/fpath_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/fpath_git_map.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/other_tools/root_maps/fpath_git_map.cpp b/src/other_tools/root_maps/fpath_git_map.cpp
index 262d2b77..e7946e71 100644
--- a/src/other_tools/root_maps/fpath_git_map.cpp
+++ b/src/other_tools/root_maps/fpath_git_map.cpp
@@ -62,12 +62,13 @@ auto CreateFilePathGitMap(
return;
}
// get head commit
- GitOpKey op_key = {{
- *repo_root, // target_path
- "", // git_hash
- "", // branch
- },
- GitOpType::GET_HEAD_ID};
+ GitOpKey op_key = {.params =
+ {
+ *repo_root, // target_path
+ "", // git_hash
+ "", // branch
+ },
+ .op_type = GitOpType::GET_HEAD_ID};
critical_git_op_map->ConsumeAfterKeysReady(
ts,
{std::move(op_key)},