diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 16:30:38 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | f1b92cf45f0ea07f22965ab6d9bca5fcd97e03a8 (patch) | |
tree | 8e198e81ee501b324f7fd4292a5f8835363bdea1 /test/buildtool/execution_engine/executor/executor.test.cpp | |
parent | 5b3ee91c84d37fe2cd7d4ddd9d26370447564161 (diff) | |
download | justbuild-f1b92cf45f0ea07f22965ab6d9bca5fcd97e03a8.tar.gz |
Pass IExecutionApi to IExecutionApi by reference
...instead of not_null const ptr.
Diffstat (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp')
-rw-r--r-- | test/buildtool/execution_engine/executor/executor.test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp index 9b1c8263..26fd9b7d 100644 --- a/test/buildtool/execution_engine/executor/executor.test.cpp +++ b/test/buildtool/execution_engine/executor/executor.test.cpp @@ -149,7 +149,7 @@ class TestApi : public IExecutionApi { [[nodiscard]] auto RetrieveToPaths( std::vector<Artifact::ObjectInfo> const& /*unused*/, std::vector<std::filesystem::path> const& /*unused*/, - std::optional<gsl::not_null<IExecutionApi*>> const& /* unused */) + std::optional<gsl::not_null<const IExecutionApi*>> const& /* unused */) const noexcept -> bool final { return false; // not needed by Executor } @@ -161,8 +161,7 @@ class TestApi : public IExecutionApi { } [[nodiscard]] auto RetrieveToCas( std::vector<Artifact::ObjectInfo> const& unused, - gsl::not_null<IExecutionApi*> const& /*unused*/) const noexcept - -> bool final { + IExecutionApi const& /*unused*/) const noexcept -> bool final { // Note that a false-positive "free-nonheap-object" warning is thrown by // gcc 12.2 with GNU libstdc++, if the caller passes a temporary vector // that is not used by this function. Therefore, we explicitly use this |