diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-22 18:40:37 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-26 14:51:43 +0100 |
commit | 0d3860c4bbfe81c7003f0ea1f1a01fc3a866daed (patch) | |
tree | a31eca399b533159f636c194d288716b4abdf7d8 /src/other_tools/root_maps/distdir_git_map.hpp | |
parent | 395c0c8cffc97ae6e29f12715bb5496db121ae01 (diff) | |
download | justbuild-0d3860c4bbfe81c7003f0ea1f1a01fc3a866daed.tar.gz |
just-mr async maps: Wrap passed raw pointers
This is to uphold the coding style guide we employ.
Diffstat (limited to 'src/other_tools/root_maps/distdir_git_map.hpp')
-rw-r--r-- | src/other_tools/root_maps/distdir_git_map.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/other_tools/root_maps/distdir_git_map.hpp b/src/other_tools/root_maps/distdir_git_map.hpp index df2b6064..bfdf02df 100644 --- a/src/other_tools/root_maps/distdir_git_map.hpp +++ b/src/other_tools/root_maps/distdir_git_map.hpp @@ -16,6 +16,7 @@ #define INCLUDED_SRC_OTHER_TOOLS_ROOT_MAPS_DISTDIR_GIT_MAP_HPP #include <memory> +#include <optional> #include <string> #include <unordered_map> #include <utility> @@ -52,8 +53,8 @@ using DistdirGitMap = gsl::not_null<ImportToGitMap*> const& import_to_git_map, gsl::not_null<CriticalGitOpMap*> const& critical_git_op_map, bool serve_api_exists, - IExecutionApi* local_api, - IExecutionApi* remote_api, + gsl::not_null<IExecutionApi*> const& local_api, + std::optional<gsl::not_null<IExecutionApi*>> const& remote_api, std::size_t jobs) -> DistdirGitMap; namespace std { |