1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-24 02:21:01 +03:00

🎨 cleanup

This commit is contained in:
Niels Lohmann
2019-03-19 09:17:14 +01:00
parent 37a72dac48
commit b224c52376
4 changed files with 153 additions and 169 deletions

View File

@ -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;
}