mirror of
https://github.com/nlohmann/json.git
synced 2026-10-12 09:27:13 +00:00
👌 remove unnecessary assignment from destructor
This commit is contained in:
2 files changed
-6
No files matched your search
@@ -2288,9 +2288,6 @@ class basic_json
|
|||||||
{
|
{
|
||||||
assert_invariant();
|
assert_invariant();
|
||||||
m_value.destroy(m_type);
|
m_value.destroy(m_type);
|
||||||
#if JSON_DIAGNOSTICS
|
|
||||||
m_parent = nullptr;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|||||||
@@ -18924,9 +18924,6 @@ class basic_json
|
|||||||
{
|
{
|
||||||
assert_invariant();
|
assert_invariant();
|
||||||
m_value.destroy(m_type);
|
m_value.destroy(m_type);
|
||||||
#if JSON_DIAGNOSTICS
|
|
||||||
m_parent = nullptr;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|||||||
Reference in new issue
Block a user