diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-14 13:04:28 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-19 17:50:30 +0100 |
commit | 56df7b3916f669edd315808f92e63e7553367f1d (patch) | |
tree | 93a269402da87f33a9e95f82e540f6fef667aa6b /test/utils/executor/test_api_bundle.hpp | |
parent | 888573c86e2eff6d1657f42955c388cda347680d (diff) | |
download | justbuild-56df7b3916f669edd315808f92e63e7553367f1d.tar.gz |
Store HashFunction by value
Although references give an additional information about ownership, they introduce additional design difficulties.
Diffstat (limited to 'test/utils/executor/test_api_bundle.hpp')
-rw-r--r-- | test/utils/executor/test_api_bundle.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/executor/test_api_bundle.hpp b/test/utils/executor/test_api_bundle.hpp index 5a27f556..1661b8bf 100644 --- a/test/utils/executor/test_api_bundle.hpp +++ b/test/utils/executor/test_api_bundle.hpp @@ -24,10 +24,10 @@ /// implementation. As only the hash_function field is actually needed, the /// remote_context and repo_config are not needed to be provided. [[nodiscard]] static auto CreateTestApiBundle( - gsl::not_null<HashFunction const*> const& hash_function, + HashFunction hash_function, gsl::not_null<IExecutionApi::Ptr> const& api) noexcept -> ApiBundle { return ApiBundle{ - .hash_function = *hash_function, .local = api, .remote = api}; + .hash_function = hash_function, .local = api, .remote = api}; } #endif // INCLUDED_SRC_TEST_UTILS_EXECUTOR_TEST_API_BUNDLE_HPP |