mirror of
https://github.com/nlohmann/json.git
synced 2025-07-24 02:21:01 +03:00
🎨 cleanup
This commit is contained in:
@ -4777,7 +4777,8 @@ class basic_json
|
||||
|
||||
// add element to array (move semantics)
|
||||
m_value.array->push_back(std::move(val));
|
||||
// invalidate object
|
||||
// invalidate object: mark it null so we do not call the destructor
|
||||
// cppcheck-suppress accessMoved
|
||||
val.m_type = value_t::null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user