diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-16 11:19:11 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-18 16:47:40 +0200 |
commit | 10d97aee7d2cdf4c5ea425491786fe9e59360299 (patch) | |
tree | 8a97ea8870815ab542bd636896e6f4819813b85f /src/buildtool/execution_api/common/tree_reader_utils.hpp | |
parent | 1d748c1808e17998b4183574e3706ef1f7b6a5db (diff) | |
download | justbuild-10d97aee7d2cdf4c5ea425491786fe9e59360299.tar.gz |
TreeReaderUtils: change InfoStoreFunc interface
...passing constructed Artifact::ObjectInfo by rvalue, to avoid additional copies.
Diffstat (limited to 'src/buildtool/execution_api/common/tree_reader_utils.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/tree_reader_utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/tree_reader_utils.hpp b/src/buildtool/execution_api/common/tree_reader_utils.hpp index ed151899..ab0aab5d 100644 --- a/src/buildtool/execution_api/common/tree_reader_utils.hpp +++ b/src/buildtool/execution_api/common/tree_reader_utils.hpp @@ -27,7 +27,7 @@ class TreeReaderUtils final { public: using InfoStoreFunc = std::function<bool(std::filesystem::path const&, - Artifact::ObjectInfo const&)>; + Artifact::ObjectInfo&&)>; /// \brief Read object infos from directory. /// \returns true on success. |