summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/distdir_git_map.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-26 09:38:36 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 11:24:20 +0200
commit76badf37b88c23081db72c206445d5f0bf4e28a4 (patch)
tree2376106b12c7664f80d9195e41371d3d31d0988d /src/other_tools/root_maps/distdir_git_map.hpp
parent915d3f2b0119f8bd31d026e686dbaf9124186e61 (diff)
downloadjustbuild-76badf37b88c23081db72c206445d5f0bf4e28a4.tar.gz
Pass ServeApi to just-mr maps by raw pointer
...since it is used for capturing in lambdas for AsyncMaps and mustn't be temporary.
Diffstat (limited to 'src/other_tools/root_maps/distdir_git_map.hpp')
-rw-r--r--src/other_tools/root_maps/distdir_git_map.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/other_tools/root_maps/distdir_git_map.hpp b/src/other_tools/root_maps/distdir_git_map.hpp
index 77717344..c83b9512 100644
--- a/src/other_tools/root_maps/distdir_git_map.hpp
+++ b/src/other_tools/root_maps/distdir_git_map.hpp
@@ -54,7 +54,7 @@ using DistdirGitMap =
gsl::not_null<ContentCASMap*> const& content_cas_map,
gsl::not_null<ImportToGitMap*> const& import_to_git_map,
gsl::not_null<CriticalGitOpMap*> const& critical_git_op_map,
- std::optional<ServeApi> const& serve,
+ ServeApi const* serve,
gsl::not_null<IExecutionApi const*> const& local_api,
IExecutionApi const* remote_api,
std::size_t jobs) -> DistdirGitMap;