summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/tree_reader_utils.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-16 11:19:11 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-18 16:47:40 +0200
commit10d97aee7d2cdf4c5ea425491786fe9e59360299 (patch)
tree8a97ea8870815ab542bd636896e6f4819813b85f /src/buildtool/execution_api/common/tree_reader_utils.hpp
parent1d748c1808e17998b4183574e3706ef1f7b6a5db (diff)
downloadjustbuild-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.hpp2
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.