From 50de44605471b930958524698e01579b6c67f7e7 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 13 Sep 2024 10:45:08 +0200 Subject: Remove std::move of const value and avoid non-movable intermediate variables --- src/other_tools/repo_map/repos_to_setup_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/other_tools/repo_map') diff --git a/src/other_tools/repo_map/repos_to_setup_map.cpp b/src/other_tools/repo_map/repos_to_setup_map.cpp index cd0849fb..351c6215 100644 --- a/src/other_tools/repo_map/repos_to_setup_map.cpp +++ b/src/other_tools/repo_map/repos_to_setup_map.cpp @@ -520,7 +520,7 @@ void DistdirCheckout(ExpressionPtr const& repo_desc, distdir_content->insert_or_assign(repo_distfile, archive->content_hash.Hash()); // add to fetch list - dist_repos_to_fetch->emplace_back(*std::move(archive)); + dist_repos_to_fetch->emplace_back(*archive); } } // get hash of distdir content -- cgit v1.2.3