Fixed cppcheck warning

Parameter 'val' can be declared with const in cppcheck.
This commit is contained in:
趙信誠 2021-05-03 13:39:30 +08:00 committed by GitHub
parent b2e784c33b
commit b11d2ceced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5937,7 +5937,7 @@ class json_sax_dom_parser
return true; return true;
} }
bool key(string_t& val) bool key(const string_t& val)
{ {
// add null at given key and store the reference for later // add null at given key and store the reference for later
object_element = &(ref_stack.back()->m_value.object->operator[](val)); object_element = &(ref_stack.back()->m_value.object->operator[](val));