summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/utils.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-09-13 12:19:01 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-09-13 15:14:30 +0200
commitfa282d024e04fb30293409179229628f5e055cc5 (patch)
treeade68ee22c56388ea81e6a2fc9669a29eb0e0f8e /src/other_tools/just_mr/utils.cpp
parent57204d29a117bd36afc7f6e07a81019d15471e8f (diff)
downloadjustbuild-fa282d024e04fb30293409179229628f5e055cc5.tar.gz
Avoid unnecessary copies
Diffstat (limited to 'src/other_tools/just_mr/utils.cpp')
-rw-r--r--src/other_tools/just_mr/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/other_tools/just_mr/utils.cpp b/src/other_tools/just_mr/utils.cpp
index 2243b799..9700b824 100644
--- a/src/other_tools/just_mr/utils.cpp
+++ b/src/other_tools/just_mr/utils.cpp
@@ -33,7 +33,7 @@ auto ResolveRepo(ExpressionPtr const& repo_desc,
return std::nullopt;
}
[[maybe_unused]] auto insert_res = seen->insert(desc_str);
- auto new_repo_desc = repos[desc_str];
+ auto const& new_repo_desc = repos[desc_str];
if (not new_repo_desc->IsMap()) {
Logger::Log(LogLevel::Error,
"Config: While resolving dependencies:\nDescription of "