mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
This commit is contained in:
parent
689ca370d4
commit
359d6e7b0b
111 changed files with 517 additions and 503 deletions
|
@ -72,7 +72,7 @@ TEST_CASE(key_ordered_iteration)
|
|||
{
|
||||
constexpr auto amount = 10000;
|
||||
IntrusiveRBTree test;
|
||||
NonnullOwnPtrVector<IntrusiveTest> m_entries;
|
||||
Vector<NonnullOwnPtr<IntrusiveTest>> m_entries;
|
||||
Array<int, amount> keys {};
|
||||
|
||||
// generate random key order
|
||||
|
@ -105,7 +105,7 @@ TEST_CASE(key_ordered_iteration)
|
|||
TEST_CASE(clear)
|
||||
{
|
||||
IntrusiveRBTree test;
|
||||
NonnullOwnPtrVector<IntrusiveTest> m_entries;
|
||||
Vector<NonnullOwnPtr<IntrusiveTest>> m_entries;
|
||||
for (size_t i = 0; i < 1000; i++) {
|
||||
auto entry = make<IntrusiveTest>(i);
|
||||
test.insert(i, *entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue