summaryrefslogtreecommitdiff
path: root/src/other_tools/ops_maps/archive_fetch_map.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-24 12:20:32 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-25 13:59:48 +0200
commitdbac8a19685b83dd1d656201da900a20e11428f2 (patch)
tree311ecff8b9498f3753d2df83b95d7301f11d90d8 /src/other_tools/ops_maps/archive_fetch_map.hpp
parentf77492425703122c9b977ba3e0f9f5fdd80a08d1 (diff)
downloadjustbuild-dbac8a19685b83dd1d656201da900a20e11428f2.tar.gz
Introduce a type allias for an optional ptr to IExecutionApi
...and replace verbose constructions.
Diffstat (limited to 'src/other_tools/ops_maps/archive_fetch_map.hpp')
-rw-r--r--src/other_tools/ops_maps/archive_fetch_map.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/other_tools/ops_maps/archive_fetch_map.hpp b/src/other_tools/ops_maps/archive_fetch_map.hpp
index f6e3d987..9f0b220d 100644
--- a/src/other_tools/ops_maps/archive_fetch_map.hpp
+++ b/src/other_tools/ops_maps/archive_fetch_map.hpp
@@ -30,7 +30,7 @@ using ArchiveFetchMap = AsyncMapConsumer<ArchiveContent, bool>;
gsl::not_null<ContentCASMap*> const& content_cas_map,
std::filesystem::path const& fetch_dir, // should exist!
gsl::not_null<IExecutionApi const*> const& local_api,
- std::optional<gsl::not_null<IExecutionApi const*>> const& remote_api,
+ IExecutionApi::OptionalPtr const& remote_api,
std::size_t jobs) -> ArchiveFetchMap;
#endif // INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_ARCHIVE_FETCH_MAP_HPP