From dbac8a19685b83dd1d656201da900a20e11428f2 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 24 Jun 2024 12:20:32 +0200 Subject: Introduce a type allias for an optional ptr to IExecutionApi ...and replace verbose constructions. --- src/buildtool/execution_api/local/local_api.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/buildtool/execution_api/local/local_api.hpp') diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp index 928fb5b8..cbb904ef 100644 --- a/src/buildtool/execution_api/local/local_api.hpp +++ b/src/buildtool/execution_api/local/local_api.hpp @@ -78,9 +78,8 @@ class LocalApi final : public IExecutionApi { [[nodiscard]] auto RetrieveToPaths( std::vector const& artifacts_info, std::vector const& output_paths, - std::optional< - gsl::not_null> const& /*alternative*/ - = std::nullopt) const noexcept -> bool final { + IExecutionApi::OptionalPtr const& /*alternative*/ = + std::nullopt) const noexcept -> bool final { if (artifacts_info.size() != output_paths.size()) { Logger::Log(LogLevel::Error, "different number of digests and output paths."); -- cgit v1.2.3