👌 remove unnecessary assignment from destructor

This commit is contained in:
Niels Lohmann committed 2021-01-08 11:09:58 +01:00
1 parent 7cdf34b21e
commit ddc3bb1992
2 files changed
-6

No files matched your search

-3
View File
@@ -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
} }
/// @} /// @}
-3
View File
@@ -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
} }
/// @} /// @}