summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/build_engine/expression/expression.cpp2
-rw-r--r--src/buildtool/main/describe.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/build_engine/expression/expression.cpp b/src/buildtool/build_engine/expression/expression.cpp
index d75bb3e8..191af619 100644
--- a/src/buildtool/build_engine/expression/expression.cpp
+++ b/src/buildtool/build_engine/expression/expression.cpp
@@ -202,7 +202,7 @@ auto Expression::FromJson(nlohmann::json const& json) noexcept
}
if (json.is_object()) {
auto m = Expression::map_t::underlying_map_t{};
- for (auto& el : json.items()) {
+ for (auto const& el : json.items()) {
m.emplace(el.key(), FromJson(el.value()));
}
return ExpressionPtr{Expression::map_t{m}};
diff --git a/src/buildtool/main/describe.cpp b/src/buildtool/main/describe.cpp
index 7f0c8969..292ea7b9 100644
--- a/src/buildtool/main/describe.cpp
+++ b/src/buildtool/main/describe.cpp
@@ -101,7 +101,7 @@ void PrettyPrintRule(nlohmann::json const& rdesc) {
auto provides_doc = rdesc.find("provides_doc");
if (provides_doc != rdesc.end()) {
std::cout << " - Documented providers\n";
- for (auto& el : provides_doc->items()) {
+ for (auto const& el : provides_doc->items()) {
std::cout << " - " << el.key() << "\n";
PrintDoc(el.value(), " | ");
}