diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 84f53e98e..3c76c81f7 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -17949,10 +17949,12 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec default: { object = nullptr; // silence warning, see #821 + // LCOV_EXCL_START if (JSON_HEDLEY_UNLIKELY(t == value_t::null)) { - JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.9.1", basic_json())); // LCOV_EXCL_LINE + JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.9.1", basic_json())); } + // LCOV_EXCL_STOP break; } } @@ -20901,7 +20903,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec std::is_same::value || #endif std::is_convertible::value), int >::type = 0 > - ValueType value(KeyType && key, const ValueType& default_value) const + ValueType value(const KeyType& key, const ValueType& default_value) const { // at only works for objects if (JSON_HEDLEY_LIKELY(is_object()))