diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-23 09:03:14 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-24 15:57:44 +0100 |
commit | f6c2fe3e30bc5e92e2c8134fb2135a532788bc3b (patch) | |
tree | 61125268304649f5ba71c0e67195a5d84210b5ae /src/buildtool/execution_api/common/execution_api.hpp | |
parent | 1c0ad764c0c1e55be393ef0074c8935b3f9c97eb (diff) | |
download | justbuild-f6c2fe3e30bc5e92e2c8134fb2135a532788bc3b.tar.gz |
just: Wrap IExecutionApi raw pointer arguments
...in accordance to our coding style.
Diffstat (limited to 'src/buildtool/execution_api/common/execution_api.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/execution_api.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/execution_api.hpp b/src/buildtool/execution_api/common/execution_api.hpp index d6ec49fb..43e16783 100644 --- a/src/buildtool/execution_api/common/execution_api.hpp +++ b/src/buildtool/execution_api/common/execution_api.hpp @@ -70,7 +70,8 @@ class IExecutionApi { [[nodiscard]] virtual auto RetrieveToPaths( std::vector<Artifact::ObjectInfo> const& artifacts_info, std::vector<std::filesystem::path> const& output_paths, - IExecutionApi* alternative = nullptr) noexcept -> bool = 0; + std::optional<gsl::not_null<IExecutionApi*>> const& alternative = + std::nullopt) noexcept -> bool = 0; /// \brief Retrieve artifacts from CAS and write to file descriptors. /// Tree artifacts are not resolved and instead the tree object will be |