mirror of
https://github.com/nlohmann/json
synced 2024-11-30 07:30:06 +00:00
Remove superfluous inefficiency
This commit is contained in:
parent
0a81353989
commit
1c43789682
@ -1683,7 +1683,6 @@ class basic_json
|
|||||||
AllocatorType<object_t> alloc;
|
AllocatorType<object_t> alloc;
|
||||||
alloc.destroy(m_value.object);
|
alloc.destroy(m_value.object);
|
||||||
alloc.deallocate(m_value.object, 1);
|
alloc.deallocate(m_value.object, 1);
|
||||||
m_value.object = nullptr;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1692,7 +1691,6 @@ class basic_json
|
|||||||
AllocatorType<array_t> alloc;
|
AllocatorType<array_t> alloc;
|
||||||
alloc.destroy(m_value.array);
|
alloc.destroy(m_value.array);
|
||||||
alloc.deallocate(m_value.array, 1);
|
alloc.deallocate(m_value.array, 1);
|
||||||
m_value.array = nullptr;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1701,7 +1699,6 @@ class basic_json
|
|||||||
AllocatorType<string_t> alloc;
|
AllocatorType<string_t> alloc;
|
||||||
alloc.destroy(m_value.string);
|
alloc.destroy(m_value.string);
|
||||||
alloc.deallocate(m_value.string, 1);
|
alloc.deallocate(m_value.string, 1);
|
||||||
m_value.string = nullptr;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user