diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-03-09 17:16:48 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-03-10 15:44:05 +0100 |
commit | 050ff6bea9ce540e88dc12a6f448fbc048839cd7 (patch) | |
tree | 50823fec870ebd07c56cd9d0b30823b88a0d06cf /src | |
parent | d1f6deaf99c95318f7ef3130775848cba6646095 (diff) | |
download | justbuild-050ff6bea9ce540e88dc12a6f448fbc048839cd7.tar.gz |
Update nlohmann::json to 3.11.2
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/build_engine/expression/expression.cpp | 2 | ||||
-rw-r--r-- | src/buildtool/main/describe.cpp | 2 |
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(), " | "); } |