🚨 fix warning
This commit is contained in:
parent
17c03b1c3c
commit
ef7c68ed3c
@ -4847,7 +4847,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
auto it = val.m_data.m_value.object->find(member);
|
auto it = val.m_data.m_value.object->find(member);
|
||||||
|
|
||||||
// context-sensitive error message
|
// context-sensitive error message
|
||||||
const auto error_msg = (op == "op") ? "operation" : detail::concat("operation '", op, '\'');
|
const auto error_msg = (op == "op") ? "operation" : detail::concat("operation '", op, '\''); // NOLINT(bugprone-unused-local-non-trivial-variable)
|
||||||
|
|
||||||
// check if desired value is present
|
// check if desired value is present
|
||||||
if (JSON_HEDLEY_UNLIKELY(it == val.m_data.m_value.object->end()))
|
if (JSON_HEDLEY_UNLIKELY(it == val.m_data.m_value.object->end()))
|
||||||
|
|||||||
@ -24150,7 +24150,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
auto it = val.m_data.m_value.object->find(member);
|
auto it = val.m_data.m_value.object->find(member);
|
||||||
|
|
||||||
// context-sensitive error message
|
// context-sensitive error message
|
||||||
const auto error_msg = (op == "op") ? "operation" : detail::concat("operation '", op, '\'');
|
const auto error_msg = (op == "op") ? "operation" : detail::concat("operation '", op, '\''); // NOLINT(bugprone-unused-local-non-trivial-variable)
|
||||||
|
|
||||||
// check if desired value is present
|
// check if desired value is present
|
||||||
if (JSON_HEDLEY_UNLIKELY(it == val.m_data.m_value.object->end()))
|
if (JSON_HEDLEY_UNLIKELY(it == val.m_data.m_value.object->end()))
|
||||||
|
|||||||
@ -125,7 +125,7 @@ struct SaxEventLogger : public nlohmann::json_sax<json>
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> events {};
|
std::vector<std::string> events {}; // NOLINT(readability-redundant-member-init)
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SaxEventLoggerExitAfterStartObject : public SaxEventLogger
|
struct SaxEventLoggerExitAfterStartObject : public SaxEventLogger
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user